|
STK++ 1.0
|
A ProjectedVariance is an implementation of the abstract ILinearReduct class.
More...
#include <STK_ProjectedVariance.h>


Public Member Functions | |
| ProjectedVariance (Matrix const *p_data) | |
| ~ProjectedVariance () | |
| Destructor. | |
| virtual void | run (Integer const &dim) |
| Compute the Index. | |
| virtual void | run (Vector const *weights, Integer const &dim) |
| Compute the weighted index. | |
| void | svdData () |
| Do svd on the matrix p_data_. | |
| void | svdWData () |
| Do svd on the matrix p_data_ with the weights of the samples. | |
Protected Member Functions | |
| virtual void | maximizeIndex () |
| Find the axis by maximizing the Index. | |
| virtual void | wmaximizeIndex () |
| Find the axis by maximizing the weighed Index. | |
| void | dataReduced () |
| Compute the new coordinates of samples. | |
Protected Attributes | |
| Svd | svdData_ |
| Object which contains the matrix resulting from svd of p_data_. | |
Private Member Functions | |
| void | computeAxis () |
| Compute the axis using the matrix V_ of the svd of data. | |
A ProjectedVariance is an implementation of the abstract ILinearReduct class.
ProjectedVariance (PCA) is the best method to reduce the dimension of data. This method computes the principal components. The number of principal components is the same of the number of variables. Then, the best components are selected thanks to the index of inertia.
Definition at line 32 of file STK_ProjectedVariance.h.
| STK::ProjectedVariance::ProjectedVariance | ( | Matrix const * | p_data | ) |
| STK::ProjectedVariance::~ProjectedVariance | ( | ) |
Destructor.
| virtual void STK::ProjectedVariance::run | ( | Integer const & | dim | ) | [virtual] |
Compute the Index.
| dim | the dimension of the reduced data set |
Compute the weighted index.
| weights | the weights to used |
| dim | number of Axis to compute |
| void STK::ProjectedVariance::svdData | ( | ) |
Do svd on the matrix p_data_.
| void STK::ProjectedVariance::svdWData | ( | ) |
Do svd on the matrix p_data_ with the weights of the samples.
| virtual void STK::ProjectedVariance::maximizeIndex | ( | ) | [protected, virtual] |
Find the axis by maximizing the Index.
Implements STK::ILinearReduct.
| virtual void STK::ProjectedVariance::wmaximizeIndex | ( | ) | [protected, virtual] |
Find the axis by maximizing the weighed Index.
| void STK::ProjectedVariance::dataReduced | ( | ) | [protected] |
Compute the new coordinates of samples.
| void STK::ProjectedVariance::computeAxis | ( | ) | [private] |
Compute the axis using the matrix V_ of the svd of data.
Svd STK::ProjectedVariance::svdData_ [protected] |
Object which contains the matrix resulting from svd of p_data_.
Definition at line 75 of file STK_ProjectedVariance.h.