nyx_space::od

Trait Measurement

source
pub trait Measurement: Copy + TimeTagged {
    type MeasurementSize: DimName;

    // Required methods
    fn fields() -> Vec<Field>;
    fn from_observation(
        epoch: Epoch,
        obs: OVector<f64, Self::MeasurementSize>,
    ) -> Self
       where DefaultAllocator: Allocator<Self::MeasurementSize>;
    fn observation(&self) -> OVector<f64, Self::MeasurementSize>
       where DefaultAllocator: Allocator<Self::MeasurementSize>;
}
Expand description

A trait defining a measurement that can be used in the orbit determination process.

Required Associated Types§

source

type MeasurementSize: DimName

Defines how much data is measured. For example, if measuring range and range rate, this should be of size 2 (nalgebra::U2).

Required Methods§

source

fn fields() -> Vec<Field>

Returns the fields for this kind of measurement. The metadata must include a unit field with the unit.

source

fn from_observation( epoch: Epoch, obs: OVector<f64, Self::MeasurementSize>, ) -> Self

Initializes a new measurement from the provided data.

source

fn observation(&self) -> OVector<f64, Self::MeasurementSize>

Returns the measurement/observation as a vector.

Object Safety§

This trait is not object safe.

Implementors§