STK++ 0.9.13
|
In this sub-project, we compute the usual descriptive statistics of variables. More...
Classes | |
class | STK::Stat::Bivariate< XTYPE, YTYPE, TContainer1D > |
Computation of the bivariate Statistics of two Variables. More... | |
class | STK::Stat::ConfusionMatrix< TrueArray, PredArray > |
Class computing the confusion matrix given two vectors of integer. More... | |
class | STK::Stat::Factor< Array > |
Computation of the Factors of a 1D Container. More... | |
class | STK::Stat::MultiFactor< Array > |
Computation of the MultiFactors of a 2D Container. More... | |
class | STK::Stat::Multivariate< Array, WColVector, Type > |
Computation of the multivariate statistics of a Variable. More... | |
class | STK::Stat::Multivariate< Array, Real > |
Computation of the Multivariate Statistics of a 2D Container of Real. More... | |
struct | STK::Stat::Online< Array, Real > |
Computation online of the statistics of a Real set of variable. More... | |
struct | STK::Stat::Online< Real, Real > |
Computation online of the statistics of a Real set of variable. More... | |
class | STK::Stat::Univariate< TContainer1D, Real > |
Computation of the univariate Statistics of a Real Variable. More... | |
Functions | |
template<class TrueArray , class PredArray > | |
CSquareXi | STK::Stat::confusionMatrix (TrueArray const &trueClass, PredArray const &predictClass) |
Utility function computing the confusion matrix given two vectors of integer. | |
template<class XArray , class YArray > | |
Real | STK::Stat::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 | STK::Stat::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 | STK::Stat::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 | STK::Stat::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 | STK::Stat::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 | STK::Stat::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 | STK::Stat::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 | STK::Stat::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_ > | STK::Stat::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_ > | STK::Stat::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_ > | STK::Stat::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_ > | STK::Stat::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_ > | STK::Stat::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_ > | STK::Stat::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_ > | STK::Stat::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_ > | STK::Stat::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 | STK::Stat::min (Derived const &A) |
Compute the minimal(s) value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, MinSafeOp >::Row | STK::Stat::minSafe (Derived const &A) |
Compute safely the minimal(s) [weighted] value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, MaxOp >::Row | STK::Stat::max (Derived const &A) |
Compute the maximal(s) value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, MaxSafeOp >::Row | STK::Stat::maxSafe (Derived const &A) |
Compute safely the maximal(s) value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, SumOp >::Row | STK::Stat::sum (Derived const &A) |
Compute the sum of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, SumSafeOp >::Row | STK::Stat::sumSafe (Derived const &A) |
Compute safely the mean(s) value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, MeanOp >::Row | STK::Stat::mean (Derived const &A) |
Compute the mean(s) value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, MeanSafeOp >::Row | STK::Stat::meanSafe (Derived const &A) |
Compute safely the mean(s) value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, VarianceOp >::Row | STK::Stat::variance (Derived const &A, bool unbiased=false) |
Compute the variance(s) value(s) of A. | |
template<class Derived > | |
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row | STK::Stat::varianceSafe (Derived const &A, bool unbiased=false) |
Compute safely the variance(s) value(s) of A. | |
template<class Derived , class MeanType > | |
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row | STK::Stat::varianceWithFixedMean (Derived const &A, MeanType const &mean, bool unbiased) |
Compute the VarianceWithFixedMean(s) value(s) of A. | |
template<class Derived , class MeanType > | |
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row | STK::Stat::varianceWithFixedMeanSafe (Derived const &A, MeanType const &mean, bool unbiased) |
Compute safely the VarianceWithFixedMean(s) value(s) of A. | |
template<class Array , class RowVector > | |
void | STK::Stat::center (Array &m, RowVector &mean) |
Compute the mean by column of the variables in the container m and center it. | |
template<class Array , class ColVector > | |
void | STK::Stat::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 | STK::Stat::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 ColVector > | |
void | STK::Stat::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 | STK::Stat::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 Array , class ColVector > | |
void | STK::Stat::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 | STK::Stat::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 ColVector > | |
void | STK::Stat::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 Array , class RowVector > | |
void | STK::Stat::unstandardize (Array &m, RowVector const &std) |
undo the standardization by columns of the standardized variable m. | |
template<class Array , class ColVector > | |
void | STK::Stat::unstandardizeByRow (Array &m, ColVector const &std) |
undo the standardization by rows of the standardized variable m. | |
template<class Array , class RowVector > | |
void | STK::Stat::unstandardize (Array &m, RowVector const &mean, RowVector const &std) |
undo the standardization by columns of the standardized variable m | |
template<class Array , class ColVector > | |
void | STK::Stat::unstandardizeByRow (Array &m, ColVector const &mean, ColVector const &std) |
undo the standardization by rows of the standardized variable m | |
In this sub-project, we compute the usual descriptive statistics of variables.
Compute the mean by column of the variables in the container m and center it.
m,mean | data and means arrays |
Definition at line 52 of file STK_Stat_Transform.h.
References STK::Stat::mean(), and STK::Stat::meanByCol().
Referenced by STK::IAAModel< Array >::center(), STK::IAAModel< Array >::center(), STK::Stat::centerByCol(), and STK::Stat::centerByCol().
Compute the weighted mean by column of the variables and center m.
m,W,mean | container of the data, weights and means |
Definition at line 89 of file STK_Stat_Transform.h.
References STK::Stat::mean(), and STK::Stat::meanByCol().
void STK::Stat::centerByRow | ( | Array & | m, |
ColVector & | mean | ||
) |
Compute the mean by row of the variables in the container V and center V.
m,mean | data and means arrays |
Definition at line 72 of file STK_Stat_Transform.h.
References STK::Stat::mean(), and STK::Stat::meanByRow().
Referenced by STK::Stat::standardizeByRow(), and STK::Stat::standardizeByRow().
Compute the weighted mean of the variables by rows and center m.
m,W,mean | container of the data, weights and means |
Definition at line 109 of file STK_Stat_Transform.h.
References STK::Stat::mean(), and STK::Stat::meanByRow().
CSquareXi STK::Stat::confusionMatrix | ( | TrueArray const & | trueClass, |
PredArray const & | predictClass | ||
) |
Utility function computing the confusion matrix given two vectors of integer.
Definition at line 87 of file STK_Stat_ConfusionMatrix.h.
Referenced by STK::Stat::ConfusionMatrix< TrueArray, PredArray >::ConfusionMatrix().
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > STK::Stat::covariance | ( | ExprBase< Array > const & | V, |
bool | unbiased = false |
||
) |
Compute the covariance matrix using the column of the data set V.
V | variable |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 484 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), and STK::Stat::varianceWithFixedMean().
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > STK::Stat::covariance | ( | ExprBase< Array > const & | V, |
Weights const & | W, | ||
bool | unbiased = false |
||
) |
Compute the weighted covariance matrix using the column of the data set V.
V,W | the variables and the weights |
unbiased | true if we want an unbiased estimate of the covariance, false otherwise (default is false ) |
Definition at line 537 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), and STK::Stat::varianceWithFixedMean().
Real STK::Stat::covariance | ( | ExprBase< XArray > const & | X, |
ExprBase< YArray > const & | Y, | ||
bool | unbiased = false |
||
) |
Compute the covariance of the variables X and Y.
X,Y | variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 55 of file STK_Stat_Covariance.h.
References STK::Stat::covariance(), STK::Stat::mean(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
Referenced by STK::GaussianModel< Array >::compCovariance(), STK::GaussianAAModel< Array >::computeProjectedCovariance(), STK::GaussianAAModel< Array >::computeResidualCovariance(), STK::GaussianModel< Array >::compWeightedCovariance(), STK::Stat::covariance(), main(), STK::ProjectedVariance< Array >::maximizeStep(), and STK::ProjectedVariance< Array >::maximizeStep().
Real STK::Stat::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.
X,Y,W | variables and weights |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 153 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMeanSafe(), STK::Stat::mean(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > STK::Stat::covarianceByRow | ( | ExprBase< Array > const & | V, |
bool | unbiased = false |
||
) |
Compute the covariance matrix using the rows of the data set V.
V | variable |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 511 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), STK::Stat::meanByRow(), and STK::Stat::varianceWithFixedMean().
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > STK::Stat::covarianceByRow | ( | ExprBase< Array > const & | V, |
Weights const & | W, | ||
bool | unbiased = false |
||
) |
Compute the weighted covariance matrix using the rows of the data set V.
V,W | the variables and the weights |
unbiased | true if we want an unbiased estimate of the covariance, false otherwise (default is false ) |
Definition at line 563 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), STK::Stat::meanByRow(), and STK::Stat::varianceWithFixedMean().
Real STK::Stat::covarianceSafe | ( | ExprBase< XArray > const & | X, |
ExprBase< YArray > const & | Y, | ||
bool | unbiased = false |
||
) |
Compute the covariance of the variables X and Y.
X,Y | variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 98 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceSafe(), STK::Arithmetic< Type >::isFinite(), STK::Stat::mean(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
Referenced by STK::Stat::covarianceSafe().
Real STK::Stat::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.
X,Y,W | variables and weights |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 208 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMeanSafe(), STK::Arithmetic< Type >::isFinite(), STK::Stat::mean(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > STK::Stat::covarianceWithFixedMean | ( | ExprBase< Array > const & | V, |
ExprBase< Mean > const & | mean, | ||
bool | unbiased = false |
||
) |
Compute the covariance matrix using the columns of the data set V.
V | variable |
mean | mean of the variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 589 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), STKRUNTIME_ERROR_NO_ARG, and STK::Stat::varianceWithFixedMean().
CArraySquare< typename Array::Type, Array::sizeCols_, Array::orient_ > STK::Stat::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.
V,W | the variables and the weights |
mean | the (weighted) mean of the variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 643 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), STKRUNTIME_ERROR_NO_ARG, and STK::Stat::varianceWithFixedMean().
Real STK::Stat::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.
X,Y,W | variables and weights |
xMean,yMean | means of the varaibles |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 371 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMeanSafe(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
Real STK::Stat::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.
X,Y | variables |
xMu,yMu | means of the variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 264 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
Referenced by STK::Stat::covariance(), STK::Stat::covariance(), STK::Stat::covarianceByRow(), STK::Stat::covarianceByRow(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMeanByRow(), STK::Stat::covarianceWithFixedMeanByRow(), STK::Stat::Multivariate< Array, Real >::run(), and STK::Stat::Multivariate< Array, Real >::run().
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > STK::Stat::covarianceWithFixedMeanByRow | ( | ExprBase< Array > const & | V, |
ExprBase< Mean > const & | mean, | ||
bool | unbiased = false |
||
) |
Compute the covariance matrix using the rows of the data set V.
V | variable |
mean | mean of the variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 616 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), STKRUNTIME_ERROR_NO_ARG, and STK::Stat::varianceWithFixedMean().
CArraySquare< typename Array::Type, Array::sizeRows_, Array::orient_ > STK::Stat::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.
V,W | the variables and the weights |
mean | the (weighted) mean of the variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 672 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMean(), STK::Stat::mean(), STKRUNTIME_ERROR_NO_ARG, and STK::Stat::varianceWithFixedMean().
Real STK::Stat::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.
X,Y,W | variables and weights |
xMu,yMu | means of the variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 428 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMeanSafe(), STK::Arithmetic< Type >::isFinite(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
Real STK::Stat::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.
X,Y | variables |
xMu,yMu | means of the variables |
unbiased | true if we want an unbiased estimate of the variance, false otherwise (default is false ) |
Definition at line 312 of file STK_Stat_Covariance.h.
References STK::Stat::covarianceWithFixedMeanSafe(), STK::Arithmetic< Type >::isFinite(), STK_STATIC_ASSERT_ONE_DIMENSION_ONLY, and STKRUNTIME_ERROR_NO_ARG.
Referenced by STK::Stat::covariance(), STK::Stat::covarianceSafe(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMeanSafe(), and STK::Stat::covarianceWithFixedMeanSafe().
hidden::FunctorTraits< Derived, MaxOp >::Row STK::Stat::max | ( | Derived const & | A | ) |
Compute the maximal(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual max of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the maximal values of each columns.
A | the array |
Definition at line 753 of file STK_Stat_Functors.h.
Referenced by main(), STK::Stat::ConfusionMatrix< TrueArray, PredArray >::operator()(), STK::Stat::MaxOp< Derived >::operator()(), STK::Stat::MaxSafeOp< Derived >::operator()(), STK::Stat::MaxOp< Derived >::operator()(), STK::Stat::MaxSafeOp< Derived >::operator()(), STK::Stat::Multivariate< Array, Real >::run(), and STK::Stat::Multivariate< Array, Real >::run().
hidden::FunctorTraits< Derived, MaxSafeOp >::Row STK::Stat::maxSafe | ( | Derived const & | A | ) |
Compute safely the maximal(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual max of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the maximal values of each columns.
A | the array |
Definition at line 765 of file STK_Stat_Functors.h.
hidden::FunctorTraits< Derived, MeanOp >::Row STK::Stat::mean | ( | Derived const & | A | ) |
Compute the mean(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual mean of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the mean values of each columns.
A | the data |
Definition at line 799 of file STK_Stat_Functors.h.
Referenced by STK::Stat::center(), STK::Stat::center(), STK::Stat::centerByCol(), STK::Stat::centerByCol(), STK::Stat::centerByRow(), STK::Stat::centerByRow(), STK::IGaussianModel< Array >::compMean(), STK::IGaussianModel< Array >::compWeightedMean(), STK::Stat::covariance(), STK::Stat::covariance(), STK::Stat::covariance(), STK::Stat::covariance(), STK::Stat::covarianceByRow(), STK::Stat::covarianceByRow(), STK::Stat::covarianceSafe(), STK::Stat::covarianceSafe(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMeanByRow(), STK::Stat::covarianceWithFixedMeanByRow(), main(), main(), STK::Stat::Multivariate< Array, Real >::run(), STK::Stat::Multivariate< Array, Real >::run(), STK::Stat::standardize(), STK::Stat::standardize(), STK::Stat::standardizeByCol(), STK::Stat::standardizeByCol(), STK::Stat::standardizeByRow(), STK::Stat::standardizeByRow(), STK::Stat::uncenter(), STK::Stat::uncenterByCol(), STK::Stat::uncenterByRow(), STK::Stat::unstandardize(), STK::Stat::unstandardizeByCol(), STK::Stat::unstandardizeByRow(), STK::Stat::varianceWithFixedMean(), STK::Stat::varianceWithFixedMean(), STK::Stat::varianceWithFixedMeanByCol(), STK::Stat::varianceWithFixedMeanByCol(), STK::Stat::varianceWithFixedMeanByRow(), STK::Stat::varianceWithFixedMeanByRow(), STK::Stat::varianceWithFixedMeanSafe(), STK::Stat::varianceWithFixedMeanSafe(), STK::Stat::varianceWithFixedMeanSafeByCol(), STK::Stat::varianceWithFixedMeanSafeByCol(), STK::Stat::varianceWithFixedMeanSafeByRow(), and STK::Stat::varianceWithFixedMeanSafeByRow().
hidden::FunctorTraits< Derived, MeanSafeOp >::Row STK::Stat::meanSafe | ( | Derived const & | A | ) |
Compute safely the mean(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual mean of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the mean values of each columns.
A | the data |
Definition at line 811 of file STK_Stat_Functors.h.
Referenced by main().
hidden::FunctorTraits< Derived, MinOp >::Row STK::Stat::min | ( | Derived const & | A | ) |
Compute the minimal(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual min of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the minimal values of each columns.
A | the array |
Definition at line 726 of file STK_Stat_Functors.h.
Referenced by main(), STK::Stat::ConfusionMatrix< TrueArray, PredArray >::operator()(), STK::Stat::MinOp< Derived >::operator()(), STK::Stat::MinSafeOp< Derived >::operator()(), STK::Stat::MinOp< Derived >::operator()(), STK::Stat::MinSafeOp< Derived >::operator()(), STK::Stat::Multivariate< Array, Real >::run(), and STK::Stat::Multivariate< Array, Real >::run().
hidden::FunctorTraits< Derived, MinSafeOp >::Row STK::Stat::minSafe | ( | Derived const & | A | ) |
Compute safely the minimal(s) [weighted] value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual minimal value of the vector. If A is a two-dimensional array, the function will return (by value) an STK::Array2DPoint with the minimal values of each columns.
A | the array |
Definition at line 740 of file STK_Stat_Functors.h.
Compute the mean and the standard deviation by columns of the variable m and standardize it.
m,mean,std | arrays with the data, the means and the standard deviations |
unbiased | false if the standard deviation as to be corrected, true otherwise |
Definition at line 129 of file STK_Stat_Transform.h.
References STK::Stat::centerByCol(), STK::Arithmetic< Type >::isFinite(), STK::Stat::mean(), and STK::Stat::varianceWithFixedMeanByCol().
Referenced by main(), STK::IAAModel< Array >::standardize(), STK::IAAModel< Array >::standardize(), STK::Stat::standardizeByCol(), and STK::Stat::standardizeByCol().
void STK::Stat::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.
m,W,mean,std | containers with the Data, the weights, the means and standard deviations |
unbiased | false if the standard deviation as to be corrected, true otherwise |
Definition at line 188 of file STK_Stat_Transform.h.
References STK::Stat::centerByCol(), STK::Arithmetic< Type >::isFinite(), STK::Stat::mean(), and STK::Stat::varianceWithFixedMeanByCol().
void STK::Stat::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.
m,mean,std | arrays with the data, the means and the standard deviations |
unbiased | false if the standard deviation as to be corrected, true otherwise |
Definition at line 160 of file STK_Stat_Transform.h.
References STK::Stat::centerByRow(), STK::Arithmetic< Type >::isFinite(), STK::Stat::mean(), and STK::Stat::varianceWithFixedMeanByRow().
void STK::Stat::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.
m,W,mean,std | containers with the Data, the weights, the means and standard deviations |
unbiased | false if the standard deviation as to be corrected, true otherwise |
Definition at line 223 of file STK_Stat_Transform.h.
References STK::Stat::centerByRow(), STK::Arithmetic< Type >::isFinite(), STK::Stat::mean(), and STK::Stat::varianceWithFixedMeanByRow().
hidden::FunctorTraits< Derived, SumOp >::Row STK::Stat::sum | ( | Derived const & | A | ) |
Compute the sum of A.
If A is a row-vector or a column-vector then the function will return the usual sum of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the sum of each columns.
A | the data |
Definition at line 776 of file STK_Stat_Functors.h.
Referenced by STK::Stat::Univariate< TContainer1D, Real >::compStatistics(), STK::Stat::Univariate< TContainer1D, Real >::compWeightedStatistics(), STK::IMixtureComposer::cStep(), STK::MixtureSemiLearner::cStep(), STK::Stat::SumOp< Derived >::operator()(), STK::Stat::SumSafeOp< Derived >::operator()(), STK::Stat::MeanOp< Derived >::operator()(), STK::Stat::MeanSafeOp< Derived >::operator()(), STK::Stat::VarianceOp< Derived >::operator()(), STK::Stat::VarianceSafeOp< Derived >::operator()(), STK::Stat::SumOp< Derived >::operator()(), STK::Stat::SumSafeOp< Derived >::operator()(), STK::Stat::MeanOp< Derived >::operator()(), STK::Stat::MeanSafeOp< Derived >::operator()(), STK::Stat::VarianceOp< Derived >::operator()(), STK::Stat::VarianceSafeOp< Derived >::operator()(), STK::Stat::VarianceWithFixedMeanOp< Derived >::operator()(), STK::Stat::VarianceWithFixedMeanSafeOp< Derived >::operator()(), STK::Stat::VarianceWithFixedMeanOp< Derived >::operator()(), and STK::Stat::VarianceWithFixedMeanSafeOp< Derived >::operator()().
hidden::FunctorTraits< Derived, SumSafeOp >::Row STK::Stat::sumSafe | ( | Derived const & | A | ) |
Compute safely the mean(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual mean of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the mean values of each columns.
A | the data |
Definition at line 787 of file STK_Stat_Functors.h.
undo the standardization by columns of the standardized variable m
m,mean,std | the containers with the Data, the means and the standard deviations |
Definition at line 331 of file STK_Stat_Transform.h.
References STK::Stat::mean(), STK::Stat::uncenterByCol(), and STK::Stat::unstandardizeByCol().
undo the standardization by columns of the standardized variable m.
m,std | the container with the data and the standard deviations |
Definition at line 292 of file STK_Stat_Transform.h.
References STKRUNTIME_ERROR_NO_ARG, and STK::Stat::unstandardize().
Referenced by main(), STK::IAAModel< Array >::standardize(), STK::IAAModel< Array >::standardize(), STK::Stat::unstandardize(), STK::Stat::unstandardizeByCol(), STK::Stat::unstandardizeByCol(), and STK::IAAModel< Array >::unstandardizeResults().
undo the standardization by rows of the standardized variable m
m,mean,std | the containers with the Data, the means and the standard deviations |
Definition at line 345 of file STK_Stat_Transform.h.
References STK::Stat::mean(), STK::Stat::uncenterByRow(), and STK::Stat::unstandardizeByRow().
undo the standardization by rows of the standardized variable m.
m,std | the container with the data and the standard deviations |
Definition at line 313 of file STK_Stat_Transform.h.
References STKRUNTIME_ERROR_NO_ARG, and STK::Stat::unstandardizeByRow().
Referenced by STK::Stat::unstandardizeByRow(), and STK::Stat::unstandardizeByRow().
hidden::FunctorTraits< Derived, VarianceOp >::Row STK::Stat::variance | ( | Derived const & | A, |
bool | unbiased = false |
||
) |
Compute the variance(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual variance of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the variance values of each columns.
A | the data |
unbiased | the unbiased variance(s) if true or the Maximum-likelihood variance otherwise (the default) |
Definition at line 826 of file STK_Stat_Functors.h.
Referenced by main().
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row STK::Stat::varianceSafe | ( | Derived const & | A, |
bool | unbiased = false |
||
) |
Compute safely the variance(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual variance of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the variance values of each columns.
A | the data |
unbiased | the unbiased variance(s) if true or the Maximum-likelihood variance otherwise (the default) |
Definition at line 869 of file STK_Stat_Functors.h.
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row STK::Stat::varianceWithFixedMean | ( | Derived const & | A, |
MeanType const & | mean, | ||
bool | unbiased | ||
) |
Compute the VarianceWithFixedMean(s) value(s) of A.
If A is a row-vector or a column-vector then the function will return the usual variance of the vector. If A is a two-dimensional array, the function will return (by value) an Array2DPoint with the variance values of each columns.
A | the data |
mean | The mean (s) to use |
unbiased | the unbiased variance(s) if true or the Maximum-likelihood variance otherwise (the default) |
Definition at line 912 of file STK_Stat_Functors.h.
References STK::Stat::mean().
Referenced by STK::JointGaussianModel< Array, WColVector >::computeParameters(), STK::JointGaussianModel< Array, WColVector >::computeParameters(), STK::Stat::covariance(), STK::Stat::covariance(), STK::Stat::covarianceByRow(), STK::Stat::covarianceByRow(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMean(), STK::Stat::covarianceWithFixedMeanByRow(), STK::Stat::covarianceWithFixedMeanByRow(), main(), STK::DiagGaussian_sjk< Array >::randomInit(), STK::DiagGaussian_sjsk< Array >::randomInit(), STK::HDGaussian_AjkBkQkD< Array >::randomInit(), STK::Stat::Multivariate< Array, Real >::run(), STK::DiagGaussian_sjk< Array >::run(), STK::DiagGaussian_sjsk< Array >::run(), STK::HDGaussian_AjkBkQkD< Array >::run(), and STK::Stat::Multivariate< Array, Real >::run().
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row STK::Stat::varianceWithFixedMeanSafe | ( | Derived const & | A, |
MeanType const & | mean, | ||
bool | unbiased | ||
) |
Compute safely the VarianceWithFixedMean(s) value(s) of A.
A | the data |
mean | The mean (s) to use |
unbiased | the unbiased variance(s) if true or the Maximum-likelihood variance otherwise (the default) |
Definition at line 951 of file STK_Stat_Functors.h.
References STK::Stat::mean().