Trait DataPoint

Source
pub trait DataPoint {
    // Required methods
    fn x(&self) -> f64;
    fn y(&self) -> f64;
}
Expand description

data point for LttbSource

Required Methods§

Source

fn x(&self) -> f64

x value for sampling, must be in a strictly increasing order

Source

fn y(&self) -> f64

y value for sampling

Implementations on Foreign Types§

Source§

impl<D: DataPoint> DataPoint for &D

Source§

fn x(&self) -> f64

Source§

fn y(&self) -> f64

Implementors§