STK++ 0.9.13
|
Computation of the Multivariate Statistics of a 2D Container of Real. More...
#include <STK_Stat_MultivariateReal.h>
Public Member Functions | |
Multivariate () | |
Default Constructor. | |
Multivariate (Array const &data) | |
Constructor. | |
Multivariate (Array const *p_data) | |
Constructor. | |
Multivariate (Multivariate const &stat) | |
copy constructor. | |
virtual | ~Multivariate () |
virtual destructor. | |
virtual Multivariate * | clone () const |
clone pattern | |
int | nbVariable () const |
int | nbSamples () const |
PointX const & | min () const |
PointX const & | max () const |
PointX const & | mean () const |
PointX const & | variance () const |
ArraySquareX const & | covariance () const |
virtual bool | run () |
run the estimation of the Multivariate statistics. | |
virtual bool | run (ColVector const &weights) |
run the estimation of the weighted multivariate statistics. | |
![]() | |
Array const * | p_data () const |
get the data set | |
virtual void | setData (Array const *p_data) |
Set the data set. | |
virtual void | setData (Array const &data) |
Set the data set. | |
virtual bool | run (hidden::Traits< Array >::Col const &weights)=0 |
run the weighted computations. | |
![]() | |
String const & | error () const |
get the last error message. | |
Protected Member Functions | |
virtual void | update () |
udpating method in case we set a new data set | |
![]() | |
IRunnerUnsupervised () | |
default constructor. | |
IRunnerUnsupervised (Array const *const p_data) | |
constructor with a pointer on the constant data set | |
IRunnerUnsupervised (Array const &data) | |
constructor with a constant reference on the data set | |
IRunnerUnsupervised (IRunnerUnsupervised const &runner) | |
copy constructor | |
~IRunnerUnsupervised () | |
destructor | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
Protected Attributes | |
int | nbSamples_ |
number of samples | |
int | nbVar_ |
Number of variables. | |
PointX | min_ |
Vector of the mean of the Variables. | |
PointX | max_ |
Vector of the mean of the Variables. | |
PointX | mean_ |
Vector of the mean of the Variables. | |
PointX | var_ |
Vector of the variance of the variables. | |
ArraySquareX | cov_ |
Array of the covariance of the variables. | |
![]() | |
Array const * | p_data_ |
A pointer on the original data set. | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
Private Types | |
enum | { value_ = hidden::isSame<Type_, Real>::value_ } |
typedef hidden::Traits< Array >::Row | RowVector |
typedef hidden::Traits< Array >::Col | ColVector |
typedef IRunnerUnsupervised< Array, ColVector > | Runner |
type of runner | |
typedef Array::Type | Type_ |
Computation of the Multivariate Statistics of a 2D Container of Real.
The class Multivariate
is just a factory class for computing the mean, the variance and the covariance square matrix of a p_data set stored in a Array
with n rows (the samples) and p columns (the variables).
Definition at line 59 of file STK_Stat_MultivariateReal.h.
|
private |
Definition at line 62 of file STK_Stat_MultivariateReal.h.
|
private |
Definition at line 61 of file STK_Stat_MultivariateReal.h.
|
private |
type of runner
Definition at line 64 of file STK_Stat_MultivariateReal.h.
|
private |
Definition at line 65 of file STK_Stat_MultivariateReal.h.
|
inline |
Default Constructor.
Definition at line 73 of file STK_Stat_MultivariateReal.h.
References STK_STATIC_ASSERT.
|
inline |
Constructor.
data | a reference on the data set |
Definition at line 80 of file STK_Stat_MultivariateReal.h.
References STK_STATIC_ASSERT.
|
inline |
Constructor.
p_data | a pointer on the data set |
Definition at line 88 of file STK_Stat_MultivariateReal.h.
References STK_STATIC_ASSERT.
|
inline |
copy constructor.
stat | the statistics to copy |
Definition at line 97 of file STK_Stat_MultivariateReal.h.
|
inlinevirtual |
|
inlinevirtual |
clone pattern
Definition at line 106 of file STK_Stat_MultivariateReal.h.
|
inline |
Definition at line 120 of file STK_Stat_MultivariateReal.h.
|
inline |
Definition at line 114 of file STK_Stat_MultivariateReal.h.
|
inline |
Definition at line 116 of file STK_Stat_MultivariateReal.h.
|
inline |
Definition at line 112 of file STK_Stat_MultivariateReal.h.
|
inline |
Definition at line 110 of file STK_Stat_MultivariateReal.h.
References STK::Stat::Multivariate< Array, WColVector, Type >::nbSamples_.
|
inline |
Definition at line 108 of file STK_Stat_MultivariateReal.h.
References STK::Stat::Multivariate< Array, WColVector, Type >::nbVar_.
|
inlinevirtual |
run the estimation of the Multivariate statistics.
Implements STK::IRunnerUnsupervised< Array, hidden::Traits< Array >::Col >.
Definition at line 123 of file STK_Stat_MultivariateReal.h.
References _T, STK::Stat::covarianceWithFixedMean(), STK::Exception::error(), STK::IRunnerBase::error(), STK::Stat::max(), STK::Stat::mean(), STK::Stat::min(), STK::IRunnerBase::msg_error_, STK::IRunnerUnsupervised< Array, WColVector >::p_data_, STKERROR_NO_ARG, and STK::Stat::varianceWithFixedMean().
|
inlinevirtual |
run the estimation of the weighted multivariate statistics.
weights | the weights of the samples |
Definition at line 159 of file STK_Stat_MultivariateReal.h.
References _T, STK::Stat::covarianceWithFixedMean(), STK::Exception::error(), STK::IRunnerBase::error(), STK::Stat::max(), STK::Stat::mean(), STK::Stat::min(), STK::IRunnerBase::msg_error_, STK::IRunnerUnsupervised< Array, WColVector >::p_data_, STKERROR_NO_ARG, and STK::Stat::varianceWithFixedMean().
|
inlineprotectedvirtual |
udpating method in case we set a new data set
Reimplemented from STK::IRunnerBase.
Definition at line 217 of file STK_Stat_MultivariateReal.h.
References STK::IRunnerUnsupervised< Array, WColVector >::p_data_.
|
inline |
Definition at line 118 of file STK_Stat_MultivariateReal.h.
|
protected |
Array of the covariance of the variables.
Definition at line 214 of file STK_Stat_MultivariateReal.h.
|
protected |
Vector of the mean of the Variables.
Definition at line 208 of file STK_Stat_MultivariateReal.h.
|
protected |
Vector of the mean of the Variables.
Definition at line 210 of file STK_Stat_MultivariateReal.h.
|
protected |
Vector of the mean of the Variables.
Definition at line 206 of file STK_Stat_MultivariateReal.h.
|
protected |
number of samples
Definition at line 201 of file STK_Stat_MultivariateReal.h.
|
protected |
Number of variables.
Definition at line 203 of file STK_Stat_MultivariateReal.h.
|
protected |
Vector of the variance of the variables.
Definition at line 212 of file STK_Stat_MultivariateReal.h.