STK++ 0.9.13
|
Compute safely the variance of the variable V when the mean is given. More...
#include <STK_Stat_Functors.h>
Public Types | |
typedef Derived::Type | Type |
Public Member Functions | |
VarianceWithFixedMeanSafeOp (ExprBase< Derived > const &V) | |
constructor | |
Type const | operator() (Type mu, bool unbiased) const |
template<class Weights > | |
Type const | operator() (ExprBase< Weights > const &w, Type const &mu, bool unbiased) const |
Protected Attributes | |
Derived const & | V_ |
Compute safely the variance of the variable V when the mean is given.
Definition at line 635 of file STK_Stat_Functors.h.
typedef Derived::Type STK::Stat::VarianceWithFixedMeanSafeOp< Derived >::Type |
Definition at line 637 of file STK_Stat_Functors.h.
|
inline |
constructor
Definition at line 639 of file STK_Stat_Functors.h.
References STK_STATIC_ASSERT_ONE_DIMENSION_ONLY.
|
inline |
w | weights |
mu | the mean |
unbiased | true if we want an unbiased estimate of the variance, false otherwise |
Definition at line 687 of file STK_Stat_Functors.h.
References STK::Arithmetic< Type >::isNA(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, STKRUNTIME_ERROR_NO_ARG, STK::Stat::sum(), and STK::Stat::VarianceWithFixedMeanSafeOp< Derived >::V_.
|
inline |
mu | the fixed mean |
unbiased | true if we want an unbiased estimate of the variance, false otherwise |
Definition at line 652 of file STK_Stat_Functors.h.
References STK::Stat::sum(), and STK::Stat::VarianceWithFixedMeanSafeOp< Derived >::V_.
|
protected |
Definition at line 713 of file STK_Stat_Functors.h.
Referenced by STK::Stat::VarianceWithFixedMeanSafeOp< Derived >::operator()(), and STK::Stat::VarianceWithFixedMeanSafeOp< Derived >::operator()().