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

Detailed Description

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

Definition at line 47 of file LDASolver.h.

Inheritance diagram for LDASolver< T >:
[legend]

Public Member Functions

 LDASolver (CDenseFeatures< T > *features, CMulticlassLabels *labels, float64_t gamma=0.0)
 
 ~LDASolver ()
 
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_means ()
 
virtual void compute_within_cov ()
 

Protected Attributes

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

◆ LDASolver()

LDASolver ( CDenseFeatures< T > *  features,
CMulticlassLabels labels,
float64_t  gamma = 0.0 
)

Definition at line 75 of file LDASolver.h.

◆ ~LDASolver()

~LDASolver ( )

Definition at line 90 of file LDASolver.h.

Member Function Documentation

◆ compute_means()

void compute_means ( )
protectedvirtual

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

Compute within class covariance matrix.

Definition at line 142 of file LDASolver.h.

◆ get_class_count()

std::vector< index_t > get_class_count ( )
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 ( )
Returns
the vector of classes' mean

Definition at line 195 of file LDASolver.h.

◆ get_mean()

SGVector< T > get_mean ( )
Returns
the total mean

Definition at line 207 of file LDASolver.h.

◆ get_within_cov()

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

Definition at line 213 of file LDASolver.h.

Member Data Documentation

◆ m_class_count

std::vector<index_t> m_class_count
protected

Definition at line 57 of file LDASolver.h.

◆ m_class_mean

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

Definition at line 55 of file LDASolver.h.

◆ m_features

CDenseFeatures<T>* m_features
protected

Definition at line 50 of file LDASolver.h.

◆ m_gamma

float64_t m_gamma
protected

Definition at line 53 of file LDASolver.h.

◆ m_labels

CMulticlassLabels* m_labels
protected

Definition at line 51 of file LDASolver.h.

◆ m_mean

SGVector<T> m_mean
protected

Definition at line 59 of file LDASolver.h.

◆ m_within_cov

SGMatrix<T> m_within_cov
protected

Definition at line 61 of file LDASolver.h.


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

SHOGUN Machine Learning Toolbox - Documentation