CPCACut类参考


详细描述

Preprocessor PCACut performs principial component analysis on the input vectors and keeps only the n eigenvectors with eigenvalues above a certain threshold.

On preprocessing the stored covariance matrix is used to project vectors into eigenspace only returning vectors of reduced dimension n. Optional whitening is performed.

This is only useful if the dimensionality of the data is rather low, as the covariance matrix is of size num_feat*num_feat. Note that vectors don't have to have zero mean as it is substracted.

在文件PCACut.h第39行定义。

继承图,类CPCACut
Inheritance graph
[图例]

所有成员的列表。

公有成员

 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_t * apply_to_feature_matrix (CFeatures *f)
virtual float64_t * apply_to_feature_vector (float64_t *f, int32_t &len)
virtual const char * get_name ()

保护属性

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

构造及析构函数文档

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

constructor

参数:
do_whitening do whitening
thresh threshold

在文件PCACut.cpp第30行定义。

~CPCACut (  )  [virtual]

在文件PCACut.cpp第36行定义。


成员函数文档

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();

实现了CSimplePreProc< float64_t >。

在文件PCACut.cpp第186行定义。

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

apply preproc on single feature vector result in feature matrix

实现了CSimplePreProc< float64_t >。

在文件PCACut.cpp第228行定义。

void cleanup (  )  [virtual]

cleanup

initialize preprocessor from features

实现了CPreProc。

在文件PCACut.cpp第177行定义。

virtual const char* get_name (  )  [virtual]
返回:
object name

在文件PCACut.h第65行定义。

bool init ( CFeatures *  f  )  [virtual]

initialize preprocessor from features

compute mean

A = 1.0*xy^T+A blas

实现了CPreProc。

在文件PCACut.cpp第43行定义。


成员数据文档

int32_t do_whitening [protected]

do whitening

在文件PCACut.h第81行定义。

bool initialized [protected]

true when already initialized

在文件PCACut.h第78行定义。

float64_t* mean [protected]

mean

在文件PCACut.h第75行定义。

int32_t num_dim [protected]

num dim

在文件PCACut.h第71行定义。

int32_t num_old_dim [protected]

num old dim

在文件PCACut.h第73行定义。

double* T [protected]

T

在文件PCACut.h第69行定义。

float64_t thresh [protected]

thresh

在文件PCACut.h第83行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation