Public Member Functions | Protected Attributes

CPCACut Class Reference


Detailed Description

Definition at line 40 of file PCACut.h.

Inheritance diagram for CPCACut:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CPCACut (int32_t do_whitening=0, float64_t thresh=1e-6)
virtual ~CPCACut ()
virtual bool init (CFeatures *f)
 initialize preprocessor from features
virtual void cleanup ()
 cleanup
virtual float64_tapply_to_feature_matrix (CFeatures *f)
virtual float64_tapply_to_feature_vector (float64_t *f, int32_t &len)
virtual const char * get_name ()

Protected Attributes

double * T
int32_t num_dim
int32_t num_old_dim
float64_tmean
bool initialized
 true when already initialized
int32_t do_whitening
float64_t thresh

Constructor & Destructor Documentation

CPCACut ( int32_t  do_whitening = 0,
float64_t  thresh = 1e-6 
)

constructor

Parameters:
do_whitening do whitening
thresh threshold

Definition at line 30 of file PCACut.cpp.

~CPCACut (  )  [virtual]

Definition at line 36 of file PCACut.cpp.


Member Function Documentation

float64_t * apply_to_feature_matrix ( CFeatures f  )  [virtual]

apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();

Implements CSimplePreProc< float64_t >.

Definition at line 186 of file PCACut.cpp.

float64_t * apply_to_feature_vector ( float64_t f,
int32_t &  len 
) [virtual]

apply preproc on single feature vector result in feature matrix

Implements CSimplePreProc< float64_t >.

Definition at line 228 of file PCACut.cpp.

void cleanup (  )  [virtual]

cleanup

initialize preprocessor from features

Implements CPreProc.

Definition at line 177 of file PCACut.cpp.

virtual const char* get_name ( void   )  [virtual]
Returns:
object name

Implements CSGObject.

Definition at line 66 of file PCACut.h.

bool init ( CFeatures f  )  [virtual]

initialize preprocessor from features

compute mean

A = 1.0*xy^T+A blas

Implements CPreProc.

Definition at line 43 of file PCACut.cpp.


Member Data Documentation

int32_t do_whitening [protected]

do whitening

Definition at line 82 of file PCACut.h.

bool initialized [protected]

true when already initialized

Definition at line 79 of file PCACut.h.

float64_t* mean [protected]

mean

Definition at line 76 of file PCACut.h.

int32_t num_dim [protected]

num dim

Definition at line 72 of file PCACut.h.

int32_t num_old_dim [protected]

num old dim

Definition at line 74 of file PCACut.h.

double* T [protected]

T

Definition at line 70 of file PCACut.h.

float64_t thresh [protected]

thresh

Definition at line 84 of file PCACut.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation