STK++ 0.9.13
|
Interface base class for reducing methods. More...
#include <STK_IReducer.h>
Public Member Functions | |
virtual | ~IReducer () |
virtual destructor. | |
int | dim () const |
get the number of dimension. | |
Array * | p_reduced () const |
get a pointer on the reduced data set | |
void | setDimension (const int &dim) |
set the number of dimension. | |
void | clear () |
clear allocated memory | |
![]() | |
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 ()=0 |
run the computations. | |
virtual bool | run (Weights const &weights)=0 |
run the weighted computations. | |
![]() | |
String const & | error () const |
get the last error message. | |
Protected Types | |
typedef IRunnerUnsupervised< Array, Weights > | Runner |
Protected Member Functions | |
IReducer () | |
Default constructor. | |
IReducer (Array const *p_data) | |
Constructor with a pointer on the constant data set. | |
IReducer (Array const &data) | |
Constructor with a constant reference on the data set. | |
IReducer (IReducer const &reducer) | |
Copy constructor. | |
![]() | |
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. | |
Protected Attributes | |
int | dim_ |
dimension of the reduced data set | |
Array * | p_reduced_ |
The reduced data set. | |
![]() | |
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 | |
Interface base class for reducing methods.
A reducer is a class implementing a dimension reduction techniques.
The class receives a matrix in input of size (n,p).
The derived class will compute a reduced data set of dimension (n,d). At this level there is no assumption about the type of the data that will be reduced. However, it is expected they can be part of a linear space.
Definition at line 59 of file STK_IReducer.h.
|
protected |
Definition at line 62 of file STK_IReducer.h.
|
protected |
|
protected |
Constructor with a pointer on the constant data set.
p_data | a pointer on the data set to reduce. |
Definition at line 112 of file STK_IReducer.h.
|
protected |
Constructor with a constant reference on the data set.
data | the data set to reduce. |
Definition at line 119 of file STK_IReducer.h.
|
protected |
Copy constructor.
Use the operator = of the clas ArrayXX
reducer | The reducer to copy. |
Definition at line 126 of file STK_IReducer.h.
References STK::IReducer< Array, Weights >::p_reduced_.
virtual destructor.
Delete reduced data set if allocated.
Definition at line 137 of file STK_IReducer.h.
clear allocated memory
Definition at line 94 of file STK_IReducer.h.
References STK::IReducer< Array, Weights >::p_reduced_.
get the number of dimension.
Definition at line 84 of file STK_IReducer.h.
References STK::IReducer< Array, Weights >::dim_.
Referenced by STK::IReducer< Array, Weights >::setDimension().
|
inline |
get a pointer on the reduced data set
Definition at line 88 of file STK_IReducer.h.
References STK::IReducer< Array, Weights >::p_reduced_.
|
inline |
set the number of dimension.
dim | the number of dimension to set |
Definition at line 92 of file STK_IReducer.h.
References STK::IReducer< Array, Weights >::dim(), and STK::IReducer< Array, Weights >::dim_.
dimension of the reduced data set
Definition at line 99 of file STK_IReducer.h.
Referenced by STK::IReducer< Array, Weights >::dim(), and STK::IReducer< Array, Weights >::setDimension().
|
protected |
The reduced data set.
Definition at line 101 of file STK_IReducer.h.
Referenced by STK::IReducer< Array, Weights >::clear(), STK::IReducer< Array, Weights >::IReducer(), and STK::IReducer< Array, Weights >::p_reduced().