[−][src]Struct ndhistogram::value::Sum
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]
Self: Default,
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]
T: Into<O>,
O: Float,
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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord> Ord for Sum<T>
[src]
pub fn cmp(&self, other: &Sum<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: PartialEq> PartialEq<Sum<T>> for Sum<T>
[src]
impl<T: PartialOrd> PartialOrd<Sum<T>> for Sum<T>
[src]
pub fn partial_cmp(&self, other: &Sum<T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Sum<T>) -> bool
[src]
pub fn le(&self, other: &Sum<T>) -> bool
[src]
pub fn gt(&self, other: &Sum<T>) -> bool
[src]
pub fn ge(&self, other: &Sum<T>) -> bool
[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]
T: RefUnwindSafe,
impl<T> Send for Sum<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Sum<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Sum<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Sum<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,