Trait gmt_lom::OpticalMetrics

source ·
pub trait OpticalMetrics {
    // Required methods
    fn n_item(&self) -> usize;
    fn time_wise(&self, n_sample: Option<usize>) -> Vec<f64>;

    // Provided method
    fn items(&self) -> Chunks<'_, f64>
       where Self: Deref<Target = Vec<f64>> { ... }
}
Expand description

Trait for the LOM optical metrics

A simple trait looking at the number of items in the TipTilt, SegmentTipTilt and SegmentPiston metrics

Required Methods§

source

fn n_item(&self) -> usize

source

fn time_wise(&self, n_sample: Option<usize>) -> Vec<f64>

Returns the metrics assigning each component in a contiguous time vector

Provided Methods§

source

fn items(&self) -> Chunks<'_, f64>
where Self: Deref<Target = Vec<f64>>,

Returns a [chunks] iterator with chunks the size of [n_item]

Implementors§