[−][src]Trait timescale::InterpolatedDataTable
Trait to allow for linear interpolation through a static timescale table
Associated Types
type Datapoint: Lerp<Self::Time>
The datapoint type
type Time: Copy
The scalar used for timing, Only f64 or f32 are supported
Associated Constants
const MIN: Self::Time
The minimum time value that is in the dataset
const MAX: Self::Time
The maximum time value that is in the dataset
Required methods
fn get_raw(
time: Self::Time
) -> InterpolatedDataPoint<Self::Datapoint, Self::Time>
time: Self::Time
) -> InterpolatedDataPoint<Self::Datapoint, Self::Time>
Get a data from the lookup table with all metadata attached. Prefer to use the get
method, for
this method is an implementation detail
Provided methods
fn get(time: Self::Time) -> Self::Datapoint
Get data from the lookup table, linear interpolating between points if the time given is between 2 points on the table, fully saturating if the time is outside of the table's range