STK++ 1.0
STK_Stat_UnivariateReal.h File Reference
#include "../../Sdk/include/STK_ITContainer1D.h"
#include "../../DManager/include/STK_HeapSort.h"
#include "STK_Stat_Univariate.h"
Include dependency graph for STK_Stat_UnivariateReal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  STK::Stat::Univariate< Real, TContainer1D >
 Computation of the univariate Statistics of a Real Variable. More...

Namespaces

namespace  STK
 

STK means the Statistical ToolKit.


namespace  STK::Stat
 

this is the namespace for the statistical treatment.


Functions

template<class TContainer1D >
Real STK::Stat::mean (ITContainer1D< Real, TContainer1D > const &V)
 Compute the mean of the variable V.
template<class TContainer1D >
Real STK::Stat::mean (ITContainer1D< Real, TContainer1D > const &V, ITContainer1D< Real, TContainer1D > const &W)
 Compute the (weighted) mean of the variable V

\[ \hat{\mu} = \frac{1}{\sum_{i=1}^n W(i)} \sum_{i=1}^n W(i) V(i). \]

If the range of the weights does not match the range of the variable the method return the usual mean.

template<class TContainer1D >
Real STK::Stat::varianceWithFixedMean (ITContainer1D< Real, TContainer1D > const &V, Real const &mu, bool unbiased=false)
 Compute the variance of the variable V with fixed mean.
template<class TContainer1D >
Real STK::Stat::varianceWithFixedMean (ITContainer1D< Real, TContainer1D > const &V, ITContainer1D< Real, TContainer1D > const &W, Real const &mu, bool unbiased=false)
 Compute the weighted variance of the variable V with fixed mean.
template<class TContainer1D >
Real STK::Stat::variance (ITContainer1D< Real, TContainer1D > const &V, bool unbiased=false)
 Compute the variance of the variable V.
template<class TContainer1D >
Real STK::Stat::variance (ITContainer1D< Real, TContainer1D > const &V, ITContainer1D< Real, TContainer1D > const &W, bool unbiased=false)
 Compute the weighted variance of the variable V.