STK++ 0.9.13
|
Computation of the MultiFactors of a 2D Container. More...
#include <STK_Stat_MultiFactor.h>
Public Types | |
typedef IRunnerWithData< Array > | Base |
typedef Array::Type | Type |
typedef std::map< Type, int > | EncodingMap |
typedef std::map< int, Type > | DecodingMap |
typedef CArrayPoint< EncodingMap > | Encoder |
typedef CArrayPoint< DecodingMap > | Decoder |
Public Member Functions | |
MultiFactor () | |
Default Constructor. | |
MultiFactor (Array const &data) | |
Constructor. | |
MultiFactor (Array const *p_data) | |
Constructor. | |
MultiFactor (MultiFactor const &f) | |
copy constructor. | |
virtual | ~MultiFactor () |
virtual destructor. | |
virtual MultiFactor * | clone () const |
clone pattern | |
CArrayXXi const & | asInteger () const |
CArrayPoint< Array2DVector< Type > > const & | levels () const |
CArrayPoint< VectorXi > const & | counts () const |
int const & | firstLevel () const |
CPointXi const & | nbLevels () const |
Encoder const & | encoder () const |
Decoder const & | decoder () const |
void | setFirstLevel (int firstLevel) |
set the value of the first level | |
virtual bool | run () |
run the estimation of the MultiFactor 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. | |
Public Attributes | |
Array const * | p_data_ |
A pointer on the original data set. | |
Protected Member Functions | |
virtual void | update () |
udpating method in case we set a new data set | |
![]() | |
IRunnerWithData () | |
default constructor. | |
IRunnerWithData (Array const *const p_data) | |
constructor with a pointer on the constant data set | |
IRunnerWithData (Array const &data) | |
constructor with a constant reference on the data set | |
IRunnerWithData (IRunnerWithData const &runner) | |
copy constructor | |
~IRunnerWithData () | |
destructor | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
Protected Attributes | |
CArrayXXi | asInteger_ |
Array of the data size with the levels of each variables in an integer format. | |
int | firstLevel_ |
first level number | |
CPointXi | nbLevels_ |
Number of levels of each variables. | |
CArrayPoint< Array2DVector< Type > > | levels_ |
Array with the levels of each variables. | |
CArrayPoint< VectorXi > | counts_ |
Array with the counts of each factor. | |
Encoder | encoder_ |
encoder of the levels | |
Decoder | decoder_ |
decoder of the levels | |
![]() | |
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 | |
Computation of the MultiFactors of a 2D Container.
The class MultiFactor
is a factory class for computing the factors of an array. The values can be of any type. the Coding is performed from the previous type in integer. The mapping is stored and preserved in an array of map array.
Definition at line 57 of file STK_Stat_MultiFactor.h.
typedef IRunnerWithData<Array> STK::Stat::MultiFactor< Array >::Base |
Definition at line 60 of file STK_Stat_MultiFactor.h.
typedef CArrayPoint<DecodingMap> STK::Stat::MultiFactor< Array >::Decoder |
Definition at line 67 of file STK_Stat_MultiFactor.h.
typedef std::map<int, Type> STK::Stat::MultiFactor< Array >::DecodingMap |
Definition at line 64 of file STK_Stat_MultiFactor.h.
typedef CArrayPoint<EncodingMap> STK::Stat::MultiFactor< Array >::Encoder |
Definition at line 66 of file STK_Stat_MultiFactor.h.
typedef std::map<Type, int> STK::Stat::MultiFactor< Array >::EncodingMap |
Definition at line 63 of file STK_Stat_MultiFactor.h.
typedef Array::Type STK::Stat::MultiFactor< Array >::Type |
Definition at line 61 of file STK_Stat_MultiFactor.h.
STK::Stat::MultiFactor< Array >::MultiFactor | ( | ) |
Default Constructor.
Definition at line 133 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::clone().
STK::Stat::MultiFactor< Array >::MultiFactor | ( | Array const & | data | ) |
Constructor.
data | a reference on the data set |
Definition at line 137 of file STK_Stat_MultiFactor.h.
STK::Stat::MultiFactor< Array >::MultiFactor | ( | Array const * | p_data | ) |
Constructor.
p_data | a pointer on the data set |
Definition at line 151 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::asInteger_, STK::Stat::MultiFactor< Array >::counts_, STK::Stat::MultiFactor< Array >::decoder_, STK::Stat::MultiFactor< Array >::encoder_, STK::Stat::MultiFactor< Array >::levels_, STK::Stat::MultiFactor< Array >::nbLevels_, STK::Stat::MultiFactor< Array >::p_data_, and STK::ICArray< Derived >::resize().
STK::Stat::MultiFactor< Array >::MultiFactor | ( | MultiFactor< Array > const & | f | ) |
copy constructor.
f | the MultiFactor to copy |
Definition at line 171 of file STK_Stat_MultiFactor.h.
|
inlinevirtual |
|
inline |
Definition at line 92 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::asInteger_.
Referenced by main().
|
inlinevirtual |
clone pattern
Definition at line 89 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::MultiFactor().
|
inline |
Definition at line 96 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::counts_.
Referenced by main().
|
inline |
Definition at line 104 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::decoder_.
|
inline |
Definition at line 102 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::encoder_.
|
inline |
Definition at line 98 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::firstLevel_.
Referenced by STK::Stat::MultiFactor< Array >::setFirstLevel().
|
inline |
Definition at line 94 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::levels_.
Referenced by main().
|
inline |
Definition at line 100 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::nbLevels_.
Referenced by main().
|
virtual |
run the estimation of the MultiFactor statistics.
Implements STK::IRunnerBase.
Definition at line 202 of file STK_Stat_MultiFactor.h.
References _T, STK::Exception::error(), and STKERROR_NO_ARG.
Referenced by main().
|
inline |
set the value of the first level
Definition at line 107 of file STK_Stat_MultiFactor.h.
References STK::Stat::MultiFactor< Array >::firstLevel(), and STK::Stat::MultiFactor< Array >::firstLevel_.
|
protectedvirtual |
udpating method in case we set a new data set
Reimplemented from STK::IRunnerBase.
Definition at line 179 of file STK_Stat_MultiFactor.h.
References STK::baseIdx.
|
protected |
Array of the data size with the levels of each variables in an integer format.
Definition at line 114 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::asInteger(), and STK::Stat::MultiFactor< Array >::MultiFactor().
|
protected |
Array with the counts of each factor.
Definition at line 122 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::counts(), and STK::Stat::MultiFactor< Array >::MultiFactor().
|
protected |
decoder of the levels
Definition at line 126 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::decoder(), and STK::Stat::MultiFactor< Array >::MultiFactor().
|
protected |
encoder of the levels
Definition at line 124 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::encoder(), and STK::Stat::MultiFactor< Array >::MultiFactor().
|
protected |
first level number
Definition at line 116 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::firstLevel(), and STK::Stat::MultiFactor< Array >::setFirstLevel().
|
protected |
Array with the levels of each variables.
Definition at line 120 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::levels(), and STK::Stat::MultiFactor< Array >::MultiFactor().
|
protected |
Number of levels of each variables.
Definition at line 118 of file STK_Stat_MultiFactor.h.
Referenced by STK::Stat::MultiFactor< Array >::MultiFactor(), and STK::Stat::MultiFactor< Array >::nbLevels().
Array const* STK::IRunnerWithData< Array >::p_data_ |
A pointer on the original data set.
Definition at line 172 of file STK_IRunner.h.
Referenced by STK::Stat::MultiFactor< Array >::MultiFactor().