[][src]Trait agnes::stats::SumSq

pub trait SumSq {
    type Output;
    fn sum_sq(&self) -> Self::Output;
}

A trait for calculating the sum of squares of values in this field.

Associated Types

type Output

The data type of the sum result.

Loading content...

Required methods

fn sum_sq(&self) -> Self::Output

Calculate the sum of squares of values in this field. Treats missing values as 0.

Loading content...

Implementors

impl<DI> SumSq for DI where
    DI: DataIndex,
    DI::DType: for<'a> Add<&'a DI::DType, Output = DI::DType> + Zero,
    &'a DI::DType: Mul<&'b DI::DType, Output = DI::DType>, 
[src]

type Output = DI::DType

Loading content...