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§
sourcefn interpolate(&mut self, timestamp: Timestamp) -> Result<(), Self::Error>
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.
sourcefn interpolate_and_get_buffers(
&mut self,
timestamp: Timestamp,
) -> Result<SerializedBuffer, Self::Error>
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.