STK++ 0.9.13
|
Computation of the multivariate statistics of a Variable. More...
#include <STK_Stat_Multivariate.h>
Public Types | |
typedef IRunnerUnsupervised< Array, WColVector > | Runner2D |
Public Member Functions | |
Multivariate (Array const *p_data) | |
Constructor. | |
Multivariate (Array const &data) | |
Constructor. | |
virtual | ~Multivariate () |
virtual destructor. | |
int | nbSamples () const |
int | nbVariable () const |
Array1D< int > const & | nbMissingSamples () const |
Number of missing values. | |
Array1D< int > const & | nbAvailableSamples () const |
virtual bool | run () |
run the estimation of the Multivariate statistics. | |
virtual bool | run (WColVector 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. | |
![]() | |
String const & | error () const |
get the last error message. | |
Protected Attributes | |
int | nbSamples_ |
number of samples | |
int | nbVar_ |
Number of variables. | |
Array1D< int > | nbMiss_ |
number of missing data of each variables | |
Array1D< int > | nbAvailable_ |
number of observed data of each 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 | |
Additional Inherited Members | |
![]() | |
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 | |
virtual void | update () |
update the runner. | |
Computation of the multivariate statistics of a Variable.
The template parameter Array
is the type of container used for storing the data : It should derive from ITContainer and contain elements of type Type.
Definition at line 54 of file STK_Stat_Multivariate.h.
typedef IRunnerUnsupervised< Array, WColVector> STK::Stat::Multivariate< Array, WColVector, Type >::Runner2D |
Definition at line 57 of file STK_Stat_Multivariate.h.
|
inline |
Constructor.
Data set are initialized but no computation is done in this constructor. Statistics of the number of missing data and available data are delegated to derived classes.
p_data | the data set |
Definition at line 64 of file STK_Stat_Multivariate.h.
|
inline |
Constructor.
Data set are initialized but no computation is done in this constructor. Statistics of the number of missing data and available data are delegated to derived classes.
data | the data set |
Definition at line 77 of file STK_Stat_Multivariate.h.
|
inlinevirtual |
|
inline |
Definition at line 97 of file STK_Stat_Multivariate.h.
References STK::Stat::Multivariate< Array, WColVector, Type >::nbAvailable_.
|
inline |
Number of missing values.
Definition at line 93 of file STK_Stat_Multivariate.h.
References STK::Stat::Multivariate< Array, WColVector, Type >::nbMiss_.
|
inline |
Definition at line 86 of file STK_Stat_Multivariate.h.
References STK::Stat::Multivariate< Array, WColVector, Type >::nbSamples_.
|
inline |
Definition at line 88 of file STK_Stat_Multivariate.h.
References STK::Stat::Multivariate< Array, WColVector, Type >::nbVar_.
|
inlinevirtual |
run the estimation of the Multivariate statistics.
Implements STK::IRunnerUnsupervised< Array, WColVector >.
Definition at line 100 of file STK_Stat_Multivariate.h.
References STK::IRunnerBase::msg_error_, STK::Stat::Multivariate< Array, WColVector, Type >::nbAvailable_, STK::Stat::Multivariate< Array, WColVector, Type >::nbMiss_, STK::Stat::Multivariate< Array, WColVector, Type >::nbSamples_, STK::Stat::Multivariate< Array, WColVector, Type >::nbVar_, STK::IRunnerUnsupervised< Array, WColVector >::p_data_, STK::ITContainer1D< Derived >::resize(), and STKERROR_NO_ARG.
Referenced by STK::Stat::Multivariate< Array, WColVector, Type >::run().
|
inlinevirtual |
run the estimation of the weighted multivariate statistics.
weights | the weights of the samples |
Implements STK::IRunnerUnsupervised< Array, WColVector >.
Definition at line 126 of file STK_Stat_Multivariate.h.
References STK::IRunnerBase::msg_error_, STK::IRunnerUnsupervised< Array, WColVector >::p_data_, STK::Stat::Multivariate< Array, WColVector, Type >::run(), and STKERROR_NO_ARG.
|
protected |
number of observed data of each variables
Definition at line 143 of file STK_Stat_Multivariate.h.
Referenced by STK::Stat::Multivariate< Array, WColVector, Type >::nbAvailableSamples(), and STK::Stat::Multivariate< Array, WColVector, Type >::run().
|
protected |
number of missing data of each variables
Definition at line 141 of file STK_Stat_Multivariate.h.
Referenced by STK::Stat::Multivariate< Array, WColVector, Type >::nbMissingSamples(), and STK::Stat::Multivariate< Array, WColVector, Type >::run().
|
protected |
number of samples
Definition at line 137 of file STK_Stat_Multivariate.h.
Referenced by STK::Stat::Multivariate< Array, WColVector, Type >::nbSamples(), STK::Stat::Multivariate< Array, Real >::nbSamples(), and STK::Stat::Multivariate< Array, WColVector, Type >::run().
|
protected |
Number of variables.
Definition at line 139 of file STK_Stat_Multivariate.h.
Referenced by STK::Stat::Multivariate< Array, WColVector, Type >::nbVariable(), STK::Stat::Multivariate< Array, Real >::nbVariable(), and STK::Stat::Multivariate< Array, WColVector, Type >::run().