STK++ 0.9.13
STK::Stat Namespace Reference

this is the namespace for the statistical treatment. More...

Classes

class  Bivariate
 Computation of the bivariate Statistics of two Variables. More...
 
class  ConfusionMatrix
 Class computing the confusion matrix given two vectors of integer. More...
 
class  Factor
 Computation of the Factors of a 1D Container. More...
 
struct  MaxOp
 Compute the maximal value of the variable V. More...
 
struct  MaxSafeOp
 Compute safely the maximal value of the variable V. More...
 
struct  MeanOp
 Compute the mean of the variable V. More...
 
struct  MeanSafeOp
 Compute safely mean of the variable V. More...
 
struct  MinOp
 Compute the minimal value of the variable V. More...
 
struct  MinSafeOp
 Compute safely the minimal value of the variable V. More...
 
class  MultiFactor
 Computation of the MultiFactors of a 2D Container. More...
 
class  Multivariate
 Computation of the multivariate statistics of a Variable. More...
 
class  Multivariate< Array, Real >
 Computation of the Multivariate Statistics of a 2D Container of Real. More...
 
struct  Online
 
struct  Online< Array, Real >
 Computation online of the statistics of a Real set of variable. More...
 
struct  Online< Real, Real >
 Computation online of the statistics of a Real set of variable. More...
 
struct  SumOp
 Compute the sum of the variable V. More...
 
struct  SumSafeOp
 Compute safely the sum of the variable V. More...
 
class  Univariate
 
class  Univariate< TContainer1D, Real >
 Computation of the univariate Statistics of a Real Variable. More...
 
struct  VarianceOp
 Compute the variance of the variable V. More...
 
struct  VarianceSafeOp
 Compute safely the variance of the variable V. More...
 
struct  VarianceWithFixedMeanOp
 Compute the variance of the variable V when the mean is given. More...
 
struct  VarianceWithFixedMeanSafeOp
 Compute safely the variance of the variable V when the mean is given. More...
 

Functions

template<class TrueArray , class PredArray >
CSquareXi confusionMatrix (TrueArray const &trueClass, PredArray const &predictClass)
 Utility function computing the confusion matrix given two vectors of integer.
 
template<class XArray , class YArray >
Real covariance (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, bool unbiased=false)
 Compute the covariance of the variables X and Y.
 
template<class XArray , class YArray >
Real covarianceSafe (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, bool unbiased=false)
 Compute the covariance of the variables X and Y.
 
template<class XArray , class YArray , class Weights >
Real covariance (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, ExprBase< Weights > const &W, bool unbiased=false)
 The covariance between X and Y will be computed using the formula.
 
template<class XArray , class YArray , class Weights >
Real covarianceSafe (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, ExprBase< Weights > const &W, bool unbiased=false)
 The covariance between X and Y will be computed using the formula.
 
template<class XArray , class YArray >
Real covarianceWithFixedMean (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, typename hidden::Traits< XArray >::Type const &xMu, typename hidden::Traits< YArray >::Type const &yMu, bool unbiased=false)
 Compute the covariance of the variables X and Y with fixed means.
 
template<class XArray , class YArray >
Real covarianceWithFixedMeanSafe (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, typename hidden::Traits< XArray >::Type const &xMu, typename hidden::Traits< YArray >::Type const &yMu, bool unbiased=false)
 Compute the covariance of the variables X and Y with fixed means.
 
template<class XArray , class YArray , class Weights >
Real covarianceWithFixedMean (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, ExprBase< Weights > const &W, typename hidden::Traits< XArray >::Type const &xMean, typename hidden::Traits< YArray >::Type const &yMean, bool unbiased=false)
 The covariance between X and Y will be computed using the formula.
 
template<class XArray , class YArray , class Weights >
Real covarianceWithFixedMeanSafe (ExprBase< XArray > const &X, ExprBase< YArray > const &Y, ExprBase< Weights > const &W, typename hidden::Traits< XArray >::Type const &xMu, typename hidden::Traits< YArray >::Type const &yMu, bool unbiased=false)
 The covariance between X and Y will be computed using the formula.
 
template<class Array >
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > covariance (ExprBase< Array > const &V, bool unbiased=false)
 Compute the covariance matrix using the column of the data set V.
 
template<class Array >
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > covarianceByRow (ExprBase< Array > const &V, bool unbiased=false)
 Compute the covariance matrix using the rows of the data set V.
 
template<class Array , class Weights >
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > covariance (ExprBase< Array > const &V, Weights const &W, bool unbiased=false)
 Compute the weighted covariance matrix using the column of the data set V.
 
template<class Array , class Weights >
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > covarianceByRow (ExprBase< Array > const &V, Weights const &W, bool unbiased=false)
 Compute the weighted covariance matrix using the rows of the data set V.
 
template<class Array , class Mean >
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > covarianceWithFixedMean (ExprBase< Array > const &V, ExprBase< Mean > const &mean, bool unbiased=false)
 Compute the covariance matrix using the columns of the data set V.
 
template<class Array , class Mean >
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > covarianceWithFixedMeanByRow (ExprBase< Array > const &V, ExprBase< Mean > const &mean, bool unbiased=false)
 Compute the covariance matrix using the rows of the data set V.
 
template<class Array , class Weights , class Mean >
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > covarianceWithFixedMean (ExprBase< Array > const &V, Weights const &W, ExprBase< Mean > const &mean, bool unbiased=false)
 Compute the weighted covariance matrix using the column of the data set V.
 
template<class Array , class Weights , class Mean >
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > covarianceWithFixedMeanByRow (ExprBase< Array > const &V, Weights const &W, ExprBase< Mean > const &mean, bool unbiased=false)
 Compute the weighted covariance matrix using the rows of the data set V.
 
template<class Derived >
hidden::FunctorTraits< Derived, MinOp >::Row min (Derived const &A)
 Compute the minimal(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Row min (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinOp >::Row minByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Row minByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinOp >::Col minByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Col minByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinSafeOp >::Row minSafe (Derived const &A)
 Compute safely the minimal(s) [weighted] value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Row minSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinSafeOp >::Row minSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Row minSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinSafeOp >::Col minSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Col minSafeByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxOp >::Row max (Derived const &A)
 Compute the maximal(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Row max (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxOp >::Row maxByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Row maxByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxOp >::Col maxByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Col maxByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row maxSafe (Derived const &A)
 Compute safely the maximal(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row maxSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row maxSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row maxSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxSafeOp >::Col maxSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Col maxSafeByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumOp >::Row sum (Derived const &A)
 Compute the sum of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Row sum (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumOp >::Row sumByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Row sumByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumOp >::Col sumByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Col sumByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumSafeOp >::Row sumSafe (Derived const &A)
 Compute safely the mean(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Row sumSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumSafeOp >::Row sumSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Row sumSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumSafeOp >::Col sumSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Col sumSafeByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanOp >::Row mean (Derived const &A)
 Compute the mean(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Row mean (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanOp >::Row meanByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Row meanByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanOp >::Col meanByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Col meanByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row meanSafe (Derived const &A)
 Compute safely the mean(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row meanSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row meanSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row meanSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanSafeOp >::Col meanSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Col meanSafeByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceOp >::Row variance (Derived const &A, bool unbiased=false)
 Compute the variance(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Row variance (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceOp >::Row varianceByCol (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Row varianceByCol (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceOp >::Col varianceByRow (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Col varianceByRow (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row varianceSafe (Derived const &A, bool unbiased=false)
 Compute safely the variance(s) value(s) of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row varianceSafe (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row varianceSafeByCol (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row varianceSafeByCol (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Col varianceSafeByRow (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Col varianceSafeByRow (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row varianceWithFixedMean (Derived const &A, MeanType const &mean, bool unbiased)
 Compute the VarianceWithFixedMean(s) value(s) of A.
 
template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row varianceWithFixedMean (Derived const &A, ExprBase< Weights > const &w, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row varianceWithFixedMeanByCol (Derived const &A, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row varianceWithFixedMeanByCol (Derived const &A, ExprBase< Weights > const &w, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Col varianceWithFixedMeanByRow (Derived const &A, MeanType const &mean, bool unbiased=false)
 
template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Col varianceWithFixedMeanByRow (Derived const &A, ExprBase< Weights > const &w, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row varianceWithFixedMeanSafe (Derived const &A, MeanType const &mean, bool unbiased)
 Compute safely the VarianceWithFixedMean(s) value(s) of A.
 
template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row varianceWithFixedMeanSafe (Derived const &A, ExprBase< Weights > const &w, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row varianceWithFixedMeanSafeByCol (Derived const &A, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row varianceWithFixedMeanSafeByCol (Derived const &A, ExprBase< Weights > const &w, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Col varianceWithFixedMeanSafeByRow (Derived const &A, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Col varianceWithFixedMeanSafeByRow (Derived const &A, ExprBase< Weights > const &w, MeanType const &mean, bool unbiased)
 
template<class Array , class RowVector >
void center (Array &m, RowVector &mean)
 Compute the mean by column of the variables in the container m and center it.
 
template<class Array , class RowVector >
void centerByCol (Array &m, RowVector &mean)
 
template<class Array , class ColVector >
void centerByRow (Array &m, ColVector &mean)
 Compute the mean by row of the variables in the container V and center V.
 
template<class Array , class Weights , class RowVector >
void center (Array &m, Weights const &W, RowVector &mean)
 Compute the weighted mean by column of the variables and center m.
 
template<class Array , class Weights , class RowVector >
void centerByCol (Array &m, Weights const &W, RowVector &mean)
 
template<class Array , class Weights , class ColVector >
void centerByRow (Array &m, Weights const &W, ColVector &mean)
 Compute the weighted mean of the variables by rows and center m.
 
template<class Array , class RowVector >
void standardize (Array &m, RowVector &mean, RowVector &std, bool unbiased=false)
 Compute the mean and the standard deviation by columns of the variable m and standardize it.
 
template<class RowVector , class Array >
void standardizeByCol (Array &m, RowVector &mean, RowVector &std, bool unbiased=false)
 
template<class Array , class ColVector >
void standardizeByRow (Array &m, ColVector &mean, ColVector &std, bool unbiased=false)
 Compute the mean and the standard deviation by rows of the variable m and standardize it.
 
template<class Array , class Weights , class RowVector >
void standardize (Array &m, Weights const &W, RowVector &mean, RowVector &std, bool unbiased=false)
 Compute the weighted means and standard deviations by columns of the variable m and standardize it.
 
template<class Array , class Weights , class RowVector >
void standardizeByCol (Array &m, Weights const &W, RowVector &mean, RowVector &std, bool unbiased=false)
 
template<class Array , class Weights , class ColVector >
void standardizeByRow (Array &m, Weights const &W, ColVector &mean, ColVector &std, bool unbiased=false)
 Compute the weighted means and standard deviations by rows of the variable m and standardize it.
 
template<class RowVector , class Array >
void uncenter (Array &m, RowVector const &mean)
 Add the means to the columns of the container m.
 
template<class RowVector , class Array >
void uncenterByCol (Array &m, RowVector const &mean)
 
template<class ColVector , class Array >
void uncenterByRow (Array &m, ColVector const &mean)
 Add the means to the rows of the container m.
 
template<class Array , class RowVector >
void unstandardize (Array &m, RowVector const &std)
 undo the standardization by columns of the standardized variable m.
 
template<class Array , class RowVector >
void unstandardizeByCol (Array &m, RowVector const &std)
 
template<class Array , class ColVector >
void unstandardizeByRow (Array &m, ColVector const &std)
 undo the standardization by rows of the standardized variable m.
 
template<class Array , class RowVector >
void unstandardize (Array &m, RowVector const &mean, RowVector const &std)
 undo the standardization by columns of the standardized variable m
 
template<class Array , class RowVector >
void unstandardizeByCol (Array &m, RowVector const &mean, RowVector const &std)
 
template<class Array , class ColVector >
void unstandardizeByRow (Array &m, ColVector const &mean, ColVector const &std)
 undo the standardization by rows of the standardized variable m
 

Detailed Description

this is the namespace for the statistical treatment.

The namespace Stat enclose the methods and classes for usual statistical treatment of the variable like mean, variance, covariance, ...

Function Documentation

◆ centerByCol() [1/2]

template<class Array , class RowVector >
void STK::Stat::centerByCol ( Array &  m,
RowVector &  mean 
)
inline

Definition at line 64 of file STK_Stat_Transform.h.

65{ center(m, mean);}
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
void center(Array &m, RowVector &mean)
Compute the mean by column of the variables in the container m and center it.

References center(), and mean().

Referenced by standardize(), and standardize().

◆ centerByCol() [2/2]

template<class Array , class Weights , class RowVector >
void STK::Stat::centerByCol ( Array &  m,
Weights const W,
RowVector &  mean 
)
inline

Definition at line 101 of file STK_Stat_Transform.h.

102{ center(m, W, mean);}

References center(), and mean().

◆ max()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Row STK::Stat::max ( Derived const A,
Weights const w 
)

Definition at line 753 of file STK_Stat_Functors.h.

◆ maxByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MaxOp >::Row STK::Stat::maxByCol ( Derived const A)

Definition at line 753 of file STK_Stat_Functors.h.

◆ maxByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Row STK::Stat::maxByCol ( Derived const A,
Weights const w 
)

Definition at line 753 of file STK_Stat_Functors.h.

◆ maxByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MaxOp >::Col STK::Stat::maxByRow ( Derived const A)

Definition at line 753 of file STK_Stat_Functors.h.

◆ maxByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Col STK::Stat::maxByRow ( Derived const A,
Weights const w 
)

Definition at line 753 of file STK_Stat_Functors.h.

◆ maxSafe()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row STK::Stat::maxSafe ( Derived const A,
Weights const w 
)

Definition at line 765 of file STK_Stat_Functors.h.

◆ maxSafeByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row STK::Stat::maxSafeByCol ( Derived const A)

Definition at line 765 of file STK_Stat_Functors.h.

◆ maxSafeByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row STK::Stat::maxSafeByCol ( Derived const A,
Weights const w 
)

Definition at line 765 of file STK_Stat_Functors.h.

◆ maxSafeByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MaxSafeOp >::Col STK::Stat::maxSafeByRow ( Derived const A)

Definition at line 765 of file STK_Stat_Functors.h.

◆ maxSafeByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Col STK::Stat::maxSafeByRow ( Derived const A,
Weights const w 
)

Definition at line 765 of file STK_Stat_Functors.h.

◆ mean()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Row STK::Stat::mean ( Derived const A,
Weights const w 
)

Definition at line 799 of file STK_Stat_Functors.h.

◆ meanByCol() [1/2]

◆ meanByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Row STK::Stat::meanByCol ( Derived const A,
Weights const w 
)

Definition at line 799 of file STK_Stat_Functors.h.

◆ meanByRow() [1/2]

◆ meanByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Col STK::Stat::meanByRow ( Derived const A,
Weights const w 
)

Definition at line 799 of file STK_Stat_Functors.h.

◆ meanSafe()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row STK::Stat::meanSafe ( Derived const A,
Weights const w 
)

Definition at line 811 of file STK_Stat_Functors.h.

◆ meanSafeByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row STK::Stat::meanSafeByCol ( Derived const A)

Definition at line 811 of file STK_Stat_Functors.h.

◆ meanSafeByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row STK::Stat::meanSafeByCol ( Derived const A,
Weights const w 
)

Definition at line 811 of file STK_Stat_Functors.h.

◆ meanSafeByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MeanSafeOp >::Col STK::Stat::meanSafeByRow ( Derived const A)

Definition at line 811 of file STK_Stat_Functors.h.

Referenced by main().

◆ meanSafeByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Col STK::Stat::meanSafeByRow ( Derived const A,
Weights const w 
)

Definition at line 811 of file STK_Stat_Functors.h.

◆ min()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Row STK::Stat::min ( Derived const A,
Weights const w 
)

Definition at line 726 of file STK_Stat_Functors.h.

◆ minByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MinOp >::Row STK::Stat::minByCol ( Derived const A)

Definition at line 726 of file STK_Stat_Functors.h.

◆ minByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Row STK::Stat::minByCol ( Derived const A,
Weights const w 
)

Definition at line 726 of file STK_Stat_Functors.h.

◆ minByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MinOp >::Col STK::Stat::minByRow ( Derived const A)

Definition at line 726 of file STK_Stat_Functors.h.

◆ minByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Col STK::Stat::minByRow ( Derived const A,
Weights const w 
)

Definition at line 726 of file STK_Stat_Functors.h.

◆ minSafe()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Row STK::Stat::minSafe ( Derived const A,
Weights const w 
)

Definition at line 740 of file STK_Stat_Functors.h.

◆ minSafeByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MinSafeOp >::Row STK::Stat::minSafeByCol ( Derived const A)

Definition at line 740 of file STK_Stat_Functors.h.

◆ minSafeByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Row STK::Stat::minSafeByCol ( Derived const A,
Weights const w 
)

Definition at line 740 of file STK_Stat_Functors.h.

◆ minSafeByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, MinSafeOp >::Col STK::Stat::minSafeByRow ( Derived const A)

Definition at line 740 of file STK_Stat_Functors.h.

◆ minSafeByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Col STK::Stat::minSafeByRow ( Derived const A,
Weights const w 
)

Definition at line 740 of file STK_Stat_Functors.h.

◆ standardizeByCol() [1/2]

template<class RowVector , class Array >
void STK::Stat::standardizeByCol ( Array &  m,
RowVector &  mean,
RowVector &  std,
bool  unbiased = false 
)
inline

Definition at line 149 of file STK_Stat_Transform.h.

150{ standardize(m, mean, std, unbiased);}
void standardize(Array &m, RowVector &mean, RowVector &std, bool unbiased=false)
Compute the mean and the standard deviation by columns of the variable m and standardize it.

References mean(), and standardize().

◆ standardizeByCol() [2/2]

template<class Array , class Weights , class RowVector >
void STK::Stat::standardizeByCol ( Array &  m,
Weights const W,
RowVector &  mean,
RowVector &  std,
bool  unbiased = false 
)
inline

Definition at line 212 of file STK_Stat_Transform.h.

213{ standardize(m, W, mean, std, unbiased);}

References mean(), and standardize().

◆ sum()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Row STK::Stat::sum ( Derived const A,
Weights const w 
)

Definition at line 776 of file STK_Stat_Functors.h.

◆ sumByCol() [1/2]

◆ sumByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Row STK::Stat::sumByCol ( Derived const A,
Weights const w 
)

Definition at line 776 of file STK_Stat_Functors.h.

◆ sumByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, SumOp >::Col STK::Stat::sumByRow ( Derived const A)

Definition at line 776 of file STK_Stat_Functors.h.

Referenced by STK::Poisson_ljlk< Array >::run().

◆ sumByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Col STK::Stat::sumByRow ( Derived const A,
Weights const w 
)

Definition at line 776 of file STK_Stat_Functors.h.

◆ sumSafe()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Row STK::Stat::sumSafe ( Derived const A,
Weights const w 
)

Definition at line 787 of file STK_Stat_Functors.h.

◆ sumSafeByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, SumSafeOp >::Row STK::Stat::sumSafeByCol ( Derived const A)

Definition at line 787 of file STK_Stat_Functors.h.

◆ sumSafeByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Row STK::Stat::sumSafeByCol ( Derived const A,
Weights const w 
)

Definition at line 787 of file STK_Stat_Functors.h.

◆ sumSafeByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, SumSafeOp >::Col STK::Stat::sumSafeByRow ( Derived const A)

Definition at line 787 of file STK_Stat_Functors.h.

◆ sumSafeByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Col STK::Stat::sumSafeByRow ( Derived const A,
Weights const w 
)

Definition at line 787 of file STK_Stat_Functors.h.

◆ uncenter()

template<class RowVector , class Array >
void STK::Stat::uncenter ( Array &  m,
RowVector const mean 
)

Add the means to the columns of the container m.

Parameters
m,meanthe container with the data and the vector of the mean
meanthe Vector of the means

Definition at line 252 of file STK_Stat_Transform.h.

253{
254 typedef typename Array::Type Type;
255 enum
256 {
257 sizeRows_ = Array::sizeRows_,
258 sizeCols_ = Array::sizeCols_
259 };
260 if (m.cols() != mean.range())
261 STKRUNTIME_ERROR_NO_ARG(Stat::uncenter(m, mean),ranges are not the same);
262 // apply uncenter
264}
#define STKRUNTIME_ERROR_NO_ARG(Where, Error)
Definition STK_Macros.h:138
Define the constant point.
hidden::SliceVisitorSelector< Derived, hidden::MeanVisitor, Arrays::by_col_ >::type_result mean(Derived const &A)
If A is a row-vector or a column-vector then the function will return the usual mean value of the vec...

References mean(), STKRUNTIME_ERROR_NO_ARG, and uncenter().

Referenced by STK::IAAModel< Array >::center(), STK::IAAModel< Array >::center(), uncenter(), uncenterByCol(), and STK::IAAModel< Array >::uncenterResults().

◆ uncenterByCol()

template<class RowVector , class Array >
void STK::Stat::uncenterByCol ( Array &  m,
RowVector const mean 
)
inline

Definition at line 266 of file STK_Stat_Transform.h.

267{ uncenter(m, mean);}
void uncenter(Array &m, RowVector const &mean)
Add the means to the columns of the container m.

References mean(), and uncenter().

Referenced by unstandardize().

◆ uncenterByRow()

template<class ColVector , class Array >
void STK::Stat::uncenterByRow ( Array &  m,
ColVector const mean 
)

Add the means to the rows of the container m.

Parameters
m,meanthe container with the data and the vector of the mean
meanthe Vector of the means

Definition at line 274 of file STK_Stat_Transform.h.

275{
276 typedef typename Array::Type Type;
277 enum
278 {
279 sizeRows_ = Array::sizeRows_,
280 sizeCols_ = Array::sizeCols_
281 };
282 if (m.rows() != mean.range())
283 STKRUNTIME_ERROR_NO_ARG(Stat::uncenterByRow(m, mean),ranges are not the same);
284 // apply uncenter
286}
Define the constant point.

References mean(), STKRUNTIME_ERROR_NO_ARG, and uncenterByRow().

Referenced by uncenterByRow(), and unstandardizeByRow().

◆ unstandardizeByCol() [1/2]

template<class Array , class RowVector >
void STK::Stat::unstandardizeByCol ( Array &  m,
RowVector const mean,
RowVector const std 
)
inline

Definition at line 337 of file STK_Stat_Transform.h.

338{ unstandardize(m, mean, std);}
void unstandardize(Array &m, RowVector const &std)
undo the standardization by columns of the standardized variable m.

References mean(), and unstandardize().

◆ unstandardizeByCol() [2/2]

template<class Array , class RowVector >
void STK::Stat::unstandardizeByCol ( Array &  m,
RowVector const std 
)
inline

Definition at line 305 of file STK_Stat_Transform.h.

306{ unstandardize(m, std);}

References unstandardize().

Referenced by unstandardize().

◆ variance()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Row STK::Stat::variance ( Derived const A,
ExprBase< Weights > const w,
bool  unbiased = false 
)

Definition at line 831 of file STK_Stat_Functors.h.

FunctorSelector< Derived, Functor,(bool) isVector_ >::ColWeightedOp ColWeightedOp

◆ varianceByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, VarianceOp >::Row STK::Stat::varianceByCol ( Derived const A,
bool  unbiased = false 
)

Definition at line 836 of file STK_Stat_Functors.h.

FunctorSelector< Derived, Functor,(bool) isVector_ >::ColOp ColOp

◆ varianceByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Row STK::Stat::varianceByCol ( Derived const A,
ExprBase< Weights > const w,
bool  unbiased = false 
)

Definition at line 841 of file STK_Stat_Functors.h.

◆ varianceByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, VarianceOp >::Col STK::Stat::varianceByRow ( Derived const A,
bool  unbiased = false 
)

Definition at line 846 of file STK_Stat_Functors.h.

FunctorSelector< Derived, Functor,(bool) isVector_ >::RowOp RowOp

◆ varianceByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Col STK::Stat::varianceByRow ( Derived const A,
ExprBase< Weights > const w,
bool  unbiased = false 
)

Definition at line 852 of file STK_Stat_Functors.h.

FunctorSelector< Derived, Functor,(bool) isVector_ >::RowWeightedOp RowWeightedOp

◆ varianceSafe()

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row STK::Stat::varianceSafe ( Derived const A,
ExprBase< Weights > const w,
bool  unbiased = false 
)

◆ varianceSafeByCol() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row STK::Stat::varianceSafeByCol ( Derived const A,
bool  unbiased = false 
)

Definition at line 879 of file STK_Stat_Functors.h.

◆ varianceSafeByCol() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row STK::Stat::varianceSafeByCol ( Derived const A,
ExprBase< Weights > const w,
bool  unbiased = false 
)

◆ varianceSafeByRow() [1/2]

template<class Derived >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Col STK::Stat::varianceSafeByRow ( Derived const A,
bool  unbiased = false 
)

Definition at line 889 of file STK_Stat_Functors.h.

◆ varianceSafeByRow() [2/2]

template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Col STK::Stat::varianceSafeByRow ( Derived const A,
ExprBase< Weights > const w,
bool  unbiased = false 
)

◆ varianceWithFixedMean()

template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row STK::Stat::varianceWithFixedMean ( Derived const A,
ExprBase< Weights > const w,
MeanType const mean,
bool  unbiased 
)

Definition at line 917 of file STK_Stat_Functors.h.

References mean().

◆ varianceWithFixedMeanByCol() [1/2]

template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row STK::Stat::varianceWithFixedMeanByCol ( Derived const A,
ExprBase< Weights > const w,
MeanType const mean,
bool  unbiased 
)

Definition at line 927 of file STK_Stat_Functors.h.

References mean().

◆ varianceWithFixedMeanByCol() [2/2]

template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row STK::Stat::varianceWithFixedMeanByCol ( Derived const A,
MeanType const mean,
bool  unbiased 
)

Definition at line 922 of file STK_Stat_Functors.h.

References mean().

Referenced by standardize(), and standardize().

◆ varianceWithFixedMeanByRow() [1/2]

template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Col STK::Stat::varianceWithFixedMeanByRow ( Derived const A,
ExprBase< Weights > const w,
MeanType const mean,
bool  unbiased 
)

Definition at line 937 of file STK_Stat_Functors.h.

References mean().

◆ varianceWithFixedMeanByRow() [2/2]

template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Col STK::Stat::varianceWithFixedMeanByRow ( Derived const A,
MeanType const mean,
bool  unbiased = false 
)

Definition at line 932 of file STK_Stat_Functors.h.

References mean().

Referenced by standardizeByRow(), and standardizeByRow().

◆ varianceWithFixedMeanSafe()

template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row STK::Stat::varianceWithFixedMeanSafe ( Derived const A,
ExprBase< Weights > const w,
MeanType const mean,
bool  unbiased 
)

◆ varianceWithFixedMeanSafeByCol() [1/2]

template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row STK::Stat::varianceWithFixedMeanSafeByCol ( Derived const A,
ExprBase< Weights > const w,
MeanType const mean,
bool  unbiased 
)

◆ varianceWithFixedMeanSafeByCol() [2/2]

template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row STK::Stat::varianceWithFixedMeanSafeByCol ( Derived const A,
MeanType const mean,
bool  unbiased 
)

Definition at line 961 of file STK_Stat_Functors.h.

References mean().

◆ varianceWithFixedMeanSafeByRow() [1/2]

template<class Derived , class MeanType , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Col STK::Stat::varianceWithFixedMeanSafeByRow ( Derived const A,
ExprBase< Weights > const w,
MeanType const mean,
bool  unbiased 
)

Definition at line 976 of file STK_Stat_Functors.h.

References mean().

◆ varianceWithFixedMeanSafeByRow() [2/2]

template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Col STK::Stat::varianceWithFixedMeanSafeByRow ( Derived const A,
MeanType const mean,
bool  unbiased 
)

Definition at line 971 of file STK_Stat_Functors.h.

References mean().