[−][src]Struct ndhistogram::value::WeightedSum
ndhistogram bin value type that calculates a weight sum.
It also provides methods to keep track of the sum of weights squared.
This is used to provide estimates of the statistical error on the weighted
sum. This performs a similar function to Sumw2
that
ROOT users may be familiar
with.
Implementations
impl<T: Copy> WeightedSum<T>
[src]
pub fn new() -> Self where
Self: Default,
[src]
Self: Default,
Factory method to create an unfilled (or zero-valued) WeightedSum.
pub fn get(&self) -> T
[src]
Get the current value of the weighted sum.
pub fn variance(&self) -> T
[src]
Estimate of the variance of the weighted sum value is the sum of the weights squared.
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 WeightedSum<T>
[src]
pub fn clone(&self) -> WeightedSum<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for WeightedSum<T>
[src]
impl<T: Debug> Debug for WeightedSum<T>
[src]
impl<T: Default> Default for WeightedSum<T>
[src]
pub fn default() -> WeightedSum<T>
[src]
impl<T: Eq> Eq for WeightedSum<T>
[src]
impl<T: Copy + Fill> Fill for WeightedSum<T>
[src]
impl<T, W> FillWith<W> for WeightedSum<T> where
T: FillWith<W> + Copy,
W: Mul<Output = W> + Copy,
[src]
T: FillWith<W> + Copy,
W: Mul<Output = W> + Copy,
impl<T: Hash> Hash for WeightedSum<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 WeightedSum<T>
[src]
pub fn cmp(&self, other: &WeightedSum<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<WeightedSum<T>> for WeightedSum<T>
[src]
pub fn eq(&self, other: &WeightedSum<T>) -> bool
[src]
pub fn ne(&self, other: &WeightedSum<T>) -> bool
[src]
impl<T: PartialOrd> PartialOrd<WeightedSum<T>> for WeightedSum<T>
[src]
pub fn partial_cmp(&self, other: &WeightedSum<T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &WeightedSum<T>) -> bool
[src]
pub fn le(&self, other: &WeightedSum<T>) -> bool
[src]
pub fn gt(&self, other: &WeightedSum<T>) -> bool
[src]
pub fn ge(&self, other: &WeightedSum<T>) -> bool
[src]
impl<T> StructuralEq for WeightedSum<T>
[src]
impl<T> StructuralPartialEq for WeightedSum<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for WeightedSum<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for WeightedSum<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for WeightedSum<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for WeightedSum<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for WeightedSum<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>,