Struct geom::Histogram[][src]

pub struct Histogram<T: HgramValue<T>> {
    count: usize,
    histogram: Histogram,
    min: T,
    max: T,
}

Fields

count: usizehistogram: Histogrammin: Tmax: T

Implementations

impl<T: HgramValue<T>> Histogram<T>[src]

pub fn new() -> Histogram<T>[src]

pub fn add(&mut self, x: T)[src]

pub fn remove(&mut self, x: T)[src]

pub fn describe(&self) -> String[src]

pub fn percentile(&self, p: f64) -> Option<T>[src]

None if empty

pub fn select(&self, stat: Statistic) -> Option<T>[src]

pub fn count(&self) -> usize[src]

pub fn seems_eq(&self, other: &Histogram<T>) -> bool[src]

Could implement PartialEq, but be a bit more clear how approximate this is

Trait Implementations

impl<T: Clone + HgramValue<T>> Clone for Histogram<T>[src]

impl<T: HgramValue<T>> Default for Histogram<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Histogram<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Histogram<T> where
    T: Send
[src]

impl<T> Sync for Histogram<T> where
    T: Sync
[src]

impl<T> Unpin for Histogram<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Histogram<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.