STK++ 0.9.13
STK_Stat_Functors.h File Reference

This file contain the functors computings statistics. More...

Include dependency graph for STK_Stat_Functors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  STK::Stat::MinOp< Derived >
 Compute the minimal value of the variable V. More...
 
struct  STK::Stat::MinSafeOp< Derived >
 Compute safely the minimal value of the variable V. More...
 
struct  STK::Stat::MaxOp< Derived >
 Compute the maximal value of the variable V. More...
 
struct  STK::Stat::MaxSafeOp< Derived >
 Compute safely the maximal value of the variable V. More...
 
struct  STK::Stat::SumOp< Derived >
 Compute the sum of the variable V. More...
 
struct  STK::Stat::SumSafeOp< Derived >
 Compute safely the sum of the variable V. More...
 
struct  STK::Stat::MeanOp< Derived >
 Compute the mean of the variable V. More...
 
struct  STK::Stat::MeanSafeOp< Derived >
 Compute safely mean of the variable V. More...
 
struct  STK::Stat::VarianceOp< Derived >
 Compute the variance of the variable V. More...
 
struct  STK::Stat::VarianceSafeOp< Derived >
 Compute safely the variance of the variable V. More...
 
struct  STK::Stat::VarianceWithFixedMeanOp< Derived >
 Compute the variance of the variable V when the mean is given. More...
 
struct  STK::Stat::VarianceWithFixedMeanSafeOp< Derived >
 Compute safely the variance of the variable V when the mean is given. More...
 

Namespaces

namespace  STK
 The namespace STK is the main domain space of the Statistical ToolKit project.
 
namespace  STK::Stat
 this is the namespace for the statistical treatment.
 

Macros

#define FUNCTION_ON_ARRAY(funct, Op)
 

Functions

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 , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Row STK::Stat::min (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinOp >::Row STK::Stat::minByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Row STK::Stat::minByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinOp >::Col STK::Stat::minByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinOp >::Col STK::Stat::minByRow (Derived const &A, Weights const &w)
 
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 , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Row STK::Stat::minSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinSafeOp >::Row STK::Stat::minSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Row STK::Stat::minSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MinSafeOp >::Col STK::Stat::minSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MinSafeOp >::Col STK::Stat::minSafeByRow (Derived const &A, Weights const &w)
 
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 , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Row STK::Stat::max (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxOp >::Row STK::Stat::maxByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Row STK::Stat::maxByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxOp >::Col STK::Stat::maxByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxOp >::Col STK::Stat::maxByRow (Derived const &A, Weights const &w)
 
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 , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row STK::Stat::maxSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row STK::Stat::maxSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Row STK::Stat::maxSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MaxSafeOp >::Col STK::Stat::maxSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MaxSafeOp >::Col STK::Stat::maxSafeByRow (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumOp >::Row STK::Stat::sum (Derived const &A)
 Compute the sum of A.
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Row STK::Stat::sum (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumOp >::Row STK::Stat::sumByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Row STK::Stat::sumByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumOp >::Col STK::Stat::sumByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumOp >::Col STK::Stat::sumByRow (Derived const &A, Weights const &w)
 
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 , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Row STK::Stat::sumSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumSafeOp >::Row STK::Stat::sumSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Row STK::Stat::sumSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, SumSafeOp >::Col STK::Stat::sumSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, SumSafeOp >::Col STK::Stat::sumSafeByRow (Derived const &A, Weights const &w)
 
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 , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Row STK::Stat::mean (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanOp >::Row STK::Stat::meanByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Row STK::Stat::meanByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanOp >::Col STK::Stat::meanByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanOp >::Col STK::Stat::meanByRow (Derived const &A, Weights const &w)
 
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 , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row STK::Stat::meanSafe (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row STK::Stat::meanSafeByCol (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Row STK::Stat::meanSafeByCol (Derived const &A, Weights const &w)
 
template<class Derived >
hidden::FunctorTraits< Derived, MeanSafeOp >::Col STK::Stat::meanSafeByRow (Derived const &A)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, MeanSafeOp >::Col STK::Stat::meanSafeByRow (Derived const &A, Weights const &w)
 
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 , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Row STK::Stat::variance (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceOp >::Row STK::Stat::varianceByCol (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Row STK::Stat::varianceByCol (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceOp >::Col STK::Stat::varianceByRow (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceOp >::Col STK::Stat::varianceByRow (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
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 Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row STK::Stat::varianceSafe (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row STK::Stat::varianceSafeByCol (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Row STK::Stat::varianceSafeByCol (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
template<class Derived >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Col STK::Stat::varianceSafeByRow (Derived const &A, bool unbiased=false)
 
template<class Derived , class Weights >
hidden::FunctorTraits< Derived, VarianceSafeOp >::Col STK::Stat::varianceSafeByRow (Derived const &A, ExprBase< Weights > const &w, bool unbiased=false)
 
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 , class Weights >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row STK::Stat::varianceWithFixedMean (Derived const &A, ExprBase< Weights > const &w, MeanType const &mean, bool unbiased)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Row STK::Stat::varianceWithFixedMeanByCol (Derived const &A, MeanType const &mean, bool unbiased)
 
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)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanOp >::Col STK::Stat::varianceWithFixedMeanByRow (Derived const &A, MeanType const &mean, bool unbiased=false)
 
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)
 
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 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)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Row STK::Stat::varianceWithFixedMeanSafeByCol (Derived const &A, MeanType const &mean, bool unbiased)
 
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)
 
template<class Derived , class MeanType >
hidden::FunctorTraits< Derived, VarianceWithFixedMeanSafeOp >::Col STK::Stat::varianceWithFixedMeanSafeByRow (Derived const &A, MeanType const &mean, bool unbiased)
 
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)
 

Detailed Description

This file contain the functors computings statistics.

Definition in file STK_Stat_Functors.h.

Macro Definition Documentation

◆ FUNCTION_ON_ARRAY

#define FUNCTION_ON_ARRAY (   funct,
  Op 
)
Value:
template< class Derived> \
typename hidden::FunctorTraits<Derived, Op >::Row \
funct(Derived const& A) \
{ return typename hidden::FunctorTraits<Derived, Op>::ColOp(A)();} \
template< class Derived, class Weights> \
typename hidden::FunctorTraits<Derived, Op >::Row \
funct(Derived const& A, Weights const& w) \
{ return typename hidden::FunctorTraits<Derived, Op>::ColWeightedOp(A)(w);} \
template< class Derived> \
typename hidden::FunctorTraits<Derived, Op >::Row \
funct##ByCol(Derived const& A) \
{ return typename hidden::FunctorTraits<Derived, Op>::ColOp(A)();} \
template< class Derived, class Weights> \
typename hidden::FunctorTraits<Derived, Op >::Row \
funct##ByCol(Derived const& A, Weights const& w) \
{ return typename hidden::FunctorTraits<Derived, Op>::ColWeightedOp(A)(w);} \
template< class Derived> \
typename hidden::FunctorTraits<Derived, Op >::Col \
funct##ByRow(Derived const& A) \
{ return typename hidden::FunctorTraits<Derived, Op>::RowOp(A)();} \
template< class Derived, class Weights> \
typename hidden::FunctorTraits<Derived, Op >::Col \
funct##ByRow(Derived const& A, Weights const& w) \
{ return typename hidden::FunctorTraits<Derived, Op>::RowWeightedOp(A)(w);}

Definition at line 40 of file STK_Stat_Functors.h.

44{ return typename hidden::FunctorTraits<Derived, Op>::ColOp(A)();} \
45template< class Derived, class Weights> \
46typename hidden::FunctorTraits<Derived, Op >::Row \
47funct(Derived const& A, Weights const& w) \
48{ return typename hidden::FunctorTraits<Derived, Op>::ColWeightedOp(A)(w);} \
49template< class Derived> \
50typename hidden::FunctorTraits<Derived, Op >::Row \
51funct##ByCol(Derived const& A) \
52{ return typename hidden::FunctorTraits<Derived, Op>::ColOp(A)();} \
53template< class Derived, class Weights> \
54typename hidden::FunctorTraits<Derived, Op >::Row \
55funct##ByCol(Derived const& A, Weights const& w) \
56{ return typename hidden::FunctorTraits<Derived, Op>::ColWeightedOp(A)(w);} \
57template< class Derived> \
58typename hidden::FunctorTraits<Derived, Op >::Col \
59funct##ByRow(Derived const& A) \
60{ return typename hidden::FunctorTraits<Derived, Op>::RowOp(A)();} \
61template< class Derived, class Weights> \
62typename hidden::FunctorTraits<Derived, Op >::Col \
63funct##ByRow(Derived const& A, Weights const& w) \
64{ return typename hidden::FunctorTraits<Derived, Op>::RowWeightedOp(A)(w);}