klMatrix
Public Member Functions | Data Fields
klMulticlassSVMTrain< TYPE > Class Template Reference

#include <kl_multiclass_svm.h>

Inheritance diagram for klMulticlassSVMTrain< TYPE >:
Inheritance graph
Collaboration diagram for klMulticlassSVMTrain< TYPE >:
Collaboration graph

Public Member Functions

TYPE RadialBasisFunctionKernel (TYPE *x, TYPE *y)
 
 klMulticlassSVMTrain (klMatrix< TYPE > trainingPoints, klVector< int > trainingClasses, unsigned int numClasses, klVector< TYPE > outlierFraction, TYPE mixingCoeff, TYPE smoThresh, TYPE sigma)
 
void operator() ()
 
int TakeStepNuMultiCache (int i1, int i2, int *classes, double *lagMults, double **kernMx, double *fCache, int *idxSet, double *bLow, double *bUp, int *iLow, int *iUp, double nu, int numPoints)
 
int ExamineExampleNuMultiCache (int i2, int *classes, double *lagMults, double **kernMx, double *fCache, int *idxSet, double *bLow, double *bUp, int *iLow, int *iUp, double nu, int numPoints, double tol)
 
void SMONuMultiCache (double **kernMx, int *classes, double nu, double mixingCoeff, double tol, int numPoints, int numClasses, double *lagMults)
 
- Public Member Functions inherited from klSamplePopulation< TYPE >
 klSamplePopulation ()
 
 klSamplePopulation (const klSamplePopulation< TYPE > &src)
 
 klSamplePopulation (const klMatrix< TYPE > &src)
 
 klSamplePopulation (unsigned int row, unsigned int col)
 
 klSamplePopulation (klMemMgr *mgr, unsigned int row, unsigned int col)
 
 klSamplePopulation (TYPE *mem, unsigned int row, unsigned int col)
 
 ~klSamplePopulation ()
 
vector< string > getDistTestNames ()
 
klMatrix< double > calcDistributionTests ()
 
void calcDescriptiveStats ()
 
klMatrix< TYPE > covarianceMatrix ()
 
klMatrix< TYPE > correlationMatrix (klMatrix< TYPE > covariance)
 
klMatrix< TYPE > whiteningTransform ()
 
klMatrix< TYPE > centeredData ()
 
TYPE stddev (unsigned int i)
 
TYPE mean (unsigned int i)
 
TYPE variance (unsigned int i)
 
TYPE skewness (unsigned int i)
 
TYPE kurtosis (unsigned int i)
 
klVector< TYPE > sampleMean ()
 
- Public Member Functions inherited from klMatrix< TYPE >
 klMatrix (TYPE *mem, __int64 row, __int64 col, bool own=0)
 
 klMatrix (klMemMgr *mgr, __int64 row, __int64 col)
 
 klMatrix (__int64 row, __int64 col)
 
 klMatrix ()
 
 klMatrix (const klMatrix< TYPE > &src)
 
 klMatrix (klMatrix< TYPE > &&src)
 
 ~klMatrix ()
 
klMatrix< TYPE > & operator= (const klMatrix< TYPE > &src)
 
klVector< TYPE > & operator[] (__int64 row) const
 
klMatrix< TYPE > operator* (klMatrix< TYPE > a) const
 
klVector< TYPE > operator* (klVector< TYPE > a) const
 
klMatrix< TYPE > & operator= (TYPE c)
 
klMatrix< TYPE > & operator+= (TYPE c)
 
klMatrix< TYPE > & operator+= (const klMatrix< TYPE > &c)
 
klMatrix< TYPE > & operator-= (const klMatrix< TYPE > &c)
 
klMatrix< TYPE > & operator-= (TYPE c)
 
klMatrix< TYPE > & operator*= (const klMatrix< TYPE > &a)
 
klMatrix< TYPE > & operator*= (TYPE c)
 
klMatrix< TYPE > & operator/= (TYPE c)
 
bool operator== (const klMatrix< TYPE > &m) const
 
klMatrix< TYPE > & operator/= (const klMatrix< TYPE > &c)
 
void setRow (__int64 j, klVector< TYPE > r)
 
klMatrix< TYPE > transpose () const
 
void threshold (double low=DBL_MIN, double lowVal=DBL_MIN, double high=DBL_MAX, double highVal=DBL_MAX)
 
complex< double > det ()
 
klMatrix< TYPE > getSubBlock (__int64 i, __int64 j, __int64 k, __int64 l)
 
void setSubBlock (klMatrix< TYPE > block, __int64 i, __int64 j)
 
void setColumn (__int64 i, klVector< TYPE > v)
 
klMatrix< TYPE > inverse () const
 
klVector< complex< double > > eigenvalues ()
 
TYPE trace ()
 
TYPE ConditionNumber (bool ellone=0)
 
TYPE norm (bool ell_infty=0)
 
klVector< TYPE > getColumn (__int64 col)
 
__int64 getRows () const
 
__int64 getColumns () const
 
TYPE * getMemory () const
 
klMemMgrgetMemMgr () const
 
bool isContiguous () const
 
klMatrix< TYPE > columnToRowMajor ()
 
void makeNanFriendly ()
 
size_t precision () const
 
void setup (__int64 row, __int64 col, klMemMgr *mgr=0)
 
klMatrix< TYPE > upper ()
 
klMatrix< TYPE > lower ()
 
klVector< TYPE > diag ()
 
template<>
klMatrix< float > operator* (klMatrix< float > a) const
 
template<>
float norm (bool ell_infty)
 
template<>
float ConditionNumber (bool ellone)
 
- Public Member Functions inherited from klRefCount< klMutex >
 klRefCount (void)
 
 klRefCount (const klRefCount &obj)
 
 ~klRefCount (void)
 
void addRef (void)
 
bool deleteRef (void)
 
klRefCountoperator= (const klRefCount &obj)
 
long useCount () const
 

Data Fields

klVector< TYPE > _lagMults
 
klVector< TYPE > _intercepts
 
klMatrix< TYPE > _supportPoints
 
klVector< int > _supportClasses
 
klVector< int > _trainingClasses
 
klVector< TYPE > _outlierFraction
 
TYPE _mixingCoeff
 
unsigned int _numClasses
 
TYPE _smoThresh
 
double _sigma
 
- Data Fields inherited from klMatrix< TYPE >
vector< std::string > _dimensionNames
 

Additional Inherited Members

- Protected Member Functions inherited from klSamplePopulation< TYPE >
TYPE * getMeanVector ()
 
TYPE * getVarianceVector ()
 
TYPE * getSkewnessVector ()
 
TYPE * getKurtosisVector ()
 
- Protected Attributes inherited from klSamplePopulation< TYPE >
TYPE * _mean
 
TYPE * _variance
 
TYPE * _skewness
 
TYPE * _kurtosis
 
bool _statsCalculated
 
unsigned int _numDistTests
 
- Protected Attributes inherited from klMatrix< TYPE >
klVector< TYPE > * _vectors
 
__int64 _own
 
bool _contiguous
 
__int64 _row
 
__int64 _col
 
TYPE * _memory
 
klMemMgr_mgr
 
string _filename
 

Constructor & Destructor Documentation

template<class TYPE>
klMulticlassSVMTrain< TYPE >::klMulticlassSVMTrain ( klMatrix< TYPE >  trainingPoints,
klVector< int >  trainingClasses,
unsigned int  numClasses,
klVector< TYPE >  outlierFraction,
TYPE  mixingCoeff,
TYPE  smoThresh,
TYPE  sigma 
)
inline

Here is the call graph for this function:

Member Function Documentation

template<class TYPE>
int klMulticlassSVMTrain< TYPE >::ExamineExampleNuMultiCache ( int  i2,
int *  classes,
double *  lagMults,
double **  kernMx,
double *  fCache,
int *  idxSet,
double *  bLow,
double *  bUp,
int *  iLow,
int *  iUp,
double  nu,
int  numPoints,
double  tol 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TYPE>
void klMulticlassSVMTrain< TYPE >::operator() ( )
inline

Here is the call graph for this function:

template<class TYPE>
TYPE klMulticlassSVMTrain< TYPE >::RadialBasisFunctionKernel ( TYPE *  x,
TYPE *  y 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TYPE>
void klMulticlassSVMTrain< TYPE >::SMONuMultiCache ( double **  kernMx,
int *  classes,
double  nu,
double  mixingCoeff,
double  tol,
int  numPoints,
int  numClasses,
double *  lagMults 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

template<class TYPE>
int klMulticlassSVMTrain< TYPE >::TakeStepNuMultiCache ( int  i1,
int  i2,
int *  classes,
double *  lagMults,
double **  kernMx,
double *  fCache,
int *  idxSet,
double *  bLow,
double *  bUp,
int *  iLow,
int *  iUp,
double  nu,
int  numPoints 
)
inline

Here is the caller graph for this function:

Field Documentation

template<class TYPE>
klVector<TYPE> klMulticlassSVMTrain< TYPE >::_intercepts
template<class TYPE>
klVector<TYPE> klMulticlassSVMTrain< TYPE >::_lagMults
template<class TYPE>
TYPE klMulticlassSVMTrain< TYPE >::_mixingCoeff
template<class TYPE>
unsigned int klMulticlassSVMTrain< TYPE >::_numClasses
template<class TYPE>
klVector<TYPE> klMulticlassSVMTrain< TYPE >::_outlierFraction
template<class TYPE>
double klMulticlassSVMTrain< TYPE >::_sigma
template<class TYPE>
TYPE klMulticlassSVMTrain< TYPE >::_smoThresh
template<class TYPE>
klVector<int> klMulticlassSVMTrain< TYPE >::_supportClasses
template<class TYPE>
klMatrix<TYPE> klMulticlassSVMTrain< TYPE >::_supportPoints
template<class TYPE>
klVector<int> klMulticlassSVMTrain< TYPE >::_trainingClasses

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