pub struct Histogram {
pub boundaries: Vec<f64>,
/* private fields */
}
Expand description
Create a histogram along some dimension, for example price Basically, put a list of prices into bins
Fields§
§boundaries: Vec<f64>
lower boundary of the bin
Implementations§
Source§impl Histogram
impl Histogram
Sourcepub fn new(prices: &[f64], bin_count: BinCount, m: f64) -> Histogram
pub fn new(prices: &[f64], bin_count: BinCount, m: f64) -> Histogram
create a new histogram from a list of price and reject outliers m is the threshold for z-score
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more