/// Returns a new instance of HistogramData with properly initialized fields.
Returns a new instance of HistogramData with properly initialized fields.
Returns a new instance of HistogramData with properly initialized fields .
pub fn new(bounds: Vec<f64>) -> Self {
        let bounds = bounds.into_iter().map(Atomic::new).collect::<Vec<_>>();
        let mut cpb = init_cpb(bounds.len() + 1);
        cpb.shrink_to_fit();
        Histogram {
            bounds: Arc::new(bounds),
            count: AtomicI64::new(0),
            count_per_bucket: Arc::new(cpb),
            min: AtomicI64::new(MAXI64),
            max: AtomicI64::new(0),
            sum: AtomicI64::new(0),
        }
    }
pub fn new ( bounds : Vec < f64 > ) -> Self { let bounds = bounds . into_iter ( ) . map ( Atomic :: new ) . collect :: < Vec < _ > > ( ) ; let mut cpb = init_cpb ( bounds . len ( ) + 1 ) ; cpb . shrink_to_fit ( ) ; Histogram { bounds : Arc :: new ( bounds ) , count : AtomicI64 :: new ( 0 ) , count_per_bucket : Arc :: new ( cpb ) , min : AtomicI64 :: new ( MAXI64 ) , max : AtomicI64 :: new ( 0 ) , sum : AtomicI64 :: new ( 0 ) , } }
Returns a new instance of HistogramData with properly initialized fields.
Returns a new instance of HistogramData with properly initialized fields .
bounds
Vec<f64>