SHOGUN  6.1.3
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
LDACanVarSolver< T > Class Template Reference

Detailed Description

template<typename T>
class shogun::LDACanVarSolver< T >

Definition at line 43 of file LDACanVarSolver.h.

Inheritance diagram for LDACanVarSolver< T >:
[legend]

Public Member Functions

 LDACanVarSolver (CDenseFeatures< T > *features, CMulticlassLabels *labels, index_t num_dim, float64_t gamma=0.0, bool bdc_svd=true, float64_t threshold=0.01)
 
SGMatrix< T > get_eigenvectors ()
 
SGVector< T > get_eigenvalues ()
 
std::vector< SGVector< T > > get_class_mean ()
 
std::vector< index_tget_class_count ()
 
SGVector< T > get_mean ()
 
SGMatrix< T > get_within_cov ()
 

Protected Member Functions

virtual void compute_between_cov ()
 
virtual void canvar ()
 
virtual void compute_means ()
 
virtual void compute_within_cov ()
 

Protected Attributes

SGMatrix< T > m_between_cov
 
index_t m_num_dim
 
float64_t m_threshold
 
SGMatrix< T > m_eigenvectors
 
SGVector< T > m_eigenvalues
 
bool m_bdc_svd
 
CDenseFeatures< T > * m_features
 
CMulticlassLabelsm_labels
 
float64_t m_gamma
 
std::vector< SGVector< T > > m_class_mean
 
std::vector< index_tm_class_count
 
SGVector< T > m_mean
 
SGMatrix< T > m_within_cov
 

Constructor & Destructor Documentation

◆ LDACanVarSolver()

LDACanVarSolver ( CDenseFeatures< T > *  features,
CMulticlassLabels labels,
index_t  num_dim,
float64_t  gamma = 0.0,
bool  bdc_svd = true,
float64_t  threshold = 0.01 
)

Definition at line 70 of file LDACanVarSolver.h.

Member Function Documentation

◆ canvar()

void canvar ( )
protectedvirtual

Compute the eigenvectors through the canonical variates algorithm.

Definition at line 109 of file LDACanVarSolver.h.

◆ compute_between_cov()

void compute_between_cov ( )
protectedvirtual

Compute between class covariance matrix.

Definition at line 93 of file LDACanVarSolver.h.

◆ compute_means()

void compute_means ( )
protectedvirtualinherited

Compute the total mean and for each class the number of data points and its mean.

Definition at line 110 of file LDASolver.h.

◆ compute_within_cov()

void compute_within_cov ( )
protectedvirtualinherited

Compute within class covariance matrix.

Definition at line 142 of file LDASolver.h.

◆ get_class_count()

std::vector< index_t > get_class_count ( )
inherited
Returns
the number of data points of each class

Definition at line 201 of file LDASolver.h.

◆ get_class_mean()

std::vector< SGVector< T > > get_class_mean ( )
inherited
Returns
the vector of classes' mean

Definition at line 195 of file LDASolver.h.

◆ get_eigenvalues()

SGVector< T > get_eigenvalues ( )
Returns
eigenvalues

Definition at line 183 of file LDACanVarSolver.h.

◆ get_eigenvectors()

SGMatrix< T > get_eigenvectors ( )
Returns
eigenvectors to project features into the transformed space

Definition at line 177 of file LDACanVarSolver.h.

◆ get_mean()

SGVector< T > get_mean ( )
inherited
Returns
the total mean

Definition at line 207 of file LDASolver.h.

◆ get_within_cov()

SGMatrix< T > get_within_cov ( )
inherited
Returns
the within covariance matrix

Definition at line 213 of file LDASolver.h.

Member Data Documentation

◆ m_bdc_svd

bool m_bdc_svd
protected

use bdc-svd algorithm

Definition at line 57 of file LDACanVarSolver.h.

◆ m_between_cov

SGMatrix<T> m_between_cov
protected

Between covariance matrix

Definition at line 47 of file LDACanVarSolver.h.

◆ m_class_count

std::vector<index_t> m_class_count
protectedinherited

Definition at line 57 of file LDASolver.h.

◆ m_class_mean

std::vector<SGVector<T> > m_class_mean
protectedinherited

Definition at line 55 of file LDASolver.h.

◆ m_eigenvalues

SGVector<T> m_eigenvalues
protected

eigenvalues vector

Definition at line 55 of file LDACanVarSolver.h.

◆ m_eigenvectors

SGMatrix<T> m_eigenvectors
protected

eigenvectors matrix

Definition at line 53 of file LDACanVarSolver.h.

◆ m_features

CDenseFeatures<T>* m_features
protectedinherited

Definition at line 50 of file LDASolver.h.

◆ m_gamma

float64_t m_gamma
protectedinherited

Definition at line 53 of file LDASolver.h.

◆ m_labels

CMulticlassLabels* m_labels
protectedinherited

Definition at line 51 of file LDASolver.h.

◆ m_mean

SGVector<T> m_mean
protectedinherited

Definition at line 59 of file LDASolver.h.

◆ m_num_dim

index_t m_num_dim
protected

Number of dimensions in the projected space

Definition at line 49 of file LDACanVarSolver.h.

◆ m_threshold

float64_t m_threshold
protected

Singular values threshold in svd

Definition at line 51 of file LDACanVarSolver.h.

◆ m_within_cov

SGMatrix<T> m_within_cov
protectedinherited

Definition at line 61 of file LDASolver.h.


The documentation for this class was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation