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§