Trait windowed_stats::experimental::series::Interpolator

source ·
pub trait Interpolator {
    type Error;

    // Required methods
    fn interpolate(&mut self, timestamp: Timestamp) -> Result<(), Self::Error>;
    fn interpolate_and_get_buffers(
        &mut self,
        timestamp: Timestamp,
    ) -> Result<SerializedBuffer, Self::Error>;
}

Required Associated Types§

Required Methods§

source

fn interpolate(&mut self, timestamp: Timestamp) -> Result<(), Self::Error>

Interpolates samples to the given timestamp.

This function queries the aggregations of the series. Typically, the timestamp is the current time.

source

fn interpolate_and_get_buffers( &mut self, timestamp: Timestamp, ) -> Result<SerializedBuffer, Self::Error>

Interpolates samples to the given timestamp and gets the serialized aggregation buffers.

This function queries the aggregations of the series. Typically, the timestamp is the current time.

Implementors§

source§

impl<F, P> Interpolator for TimeMatrix<F, P>
where FoldError: From<F::Error>, F: BufferStrategy<F::Aggregation, P> + Statistic, P: Interpolation<FillSample<F> = F::Sample>,

source§

impl<T> Interpolator for MockTimeMatrix<T>