[][src]Struct ndhistogram::value::Sum

pub struct Sum<T = f64> { /* fields omitted */ }

ndhistogram bin value type for filling unweighted values. Analogous to [WeightedSum]. Methods returning variance and standard deviation assume Poisson statistics.

Implementations

impl<T: Copy> Sum<T>[src]

pub fn new() -> Self where
    Self: Default
[src]

Factory method to create an unfilled (or zero valued) Sum.

pub fn get(&self) -> T[src]

Get the current value.

pub fn variance(&self) -> T[src]

Estimate of the variance of value assuming Poisson statistics.

pub fn standard_deviation<O: Float>(&self) -> O where
    T: Into<O>,
    O: Float
[src]

Square root of the variance.

Trait Implementations

impl<T: Clone> Clone for Sum<T>[src]

impl<T: Copy> Copy for Sum<T>[src]

impl<T: Debug> Debug for Sum<T>[src]

impl<T: Default> Default for Sum<T>[src]

impl<T: Eq> Eq for Sum<T>[src]

impl<T: Copy + Fill> Fill for Sum<T>[src]

impl<T: Hash> Hash for Sum<T>[src]

impl<T: Ord> Ord for Sum<T>[src]

impl<T: PartialEq> PartialEq<Sum<T>> for Sum<T>[src]

impl<T: PartialOrd> PartialOrd<Sum<T>> for Sum<T>[src]

impl<T> StructuralEq for Sum<T>[src]

impl<T> StructuralPartialEq for Sum<T>[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for Sum<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> 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.