LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::lvq Class Reference

LVQ-Net. More...

#include <ltiLvq.h>

Inheritance diagram for lti::lvq:
Inheritance graph
[legend]
Collaboration diagram for lti::lvq:
Collaboration graph
[legend]

List of all members.

Classes

class  layer
 lvq layer More...
class  lvq1TrainFunctor
 LVQ1. More...
class  lvq3TrainFunctor
 LVQ3. More...
class  lvq4TrainFunctor
 LVQ4. More...
class  maxDistInitFunctor
 maximum distance initialization More...
class  olvq1TrainFunctor
 OLVQ1. More...
class  olvq3TrainFunctor
 OLVQ3. More...
class  parameters
 the parameters for the class classifier More...
class  randInitFunctor
 random initialization More...
class  trainFunctor
 base class of training functors for the lvq networks More...

Public Member Functions

 lvq ()
 lvq (const lvq &other)
 ~lvq ()
bool train (const dmatrix &input, const ivector &ids)
bool classify (const dvector &featurem, outputVector &result) const
int getDimOutputLayer () const
void setTestSet (const dmatrix &input, const ivector &ids)
void setTrainSet2 (const dmatrix &input, const ivector &ids)
void calcObjProbs (const ivector &ids, const dmatrix &feats, stdLayer::distancePropFunctor &distProp)
lvqcopy (const lvq &other)
lvqoperator= (const lvq &other)
virtual classifierclone () const
const parametersgetParameters () const

Detailed Description

LVQ-Net.


Constructor & Destructor Documentation

lti::lvq::lvq (  ) 

Constructor.

lti::lvq::lvq ( const lvq other  ) 

Copy constructor.

lti::lvq::~lvq (  ) 

Destructor.


Member Function Documentation

void lti::lvq::calcObjProbs ( const ivector ids,
const dmatrix feats,
stdLayer::distancePropFunctor distProp 
)

Calculate object probabilities with given features.

bool lti::lvq::classify ( const dvector featurem,
outputVector result 
) const [virtual]

Propagation.

Propagates feature vector through the net

Implements lti::supervisedInstanceClassifier.

virtual classifier* lti::lvq::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::classifier.

lvq& lti::lvq::copy ( const lvq other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::supervisedInstanceClassifier.

Referenced by operator=().

int lti::lvq::getDimOutputLayer (  )  const [inline]

dimension of the output layer

return the dimensions of the output layer

References getParameters(), and lti::lvq::parameters::nbNeuronsPerClass.

const parameters& lti::lvq::getParameters (  )  const

returns used parameters

Reimplemented from lti::supervisedInstanceClassifier.

Referenced by getDimOutputLayer().

lvq& lti::lvq::operator= ( const lvq other  )  [inline]

Alias for copy.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::supervisedInstanceClassifier.

References copy().

void lti::lvq::setTestSet ( const dmatrix input,
const ivector ids 
)

Gets the test-data for training statistics.

void lti::lvq::setTrainSet2 ( const dmatrix input,
const ivector ids 
)

Gets the disjunct training data for object probabilities.

bool lti::lvq::train ( const dmatrix input,
const ivector ids 
) [virtual]

Supervised training.

(LVQ) The vectors in the input sequence must be trained using as "known" classes the values given in ids.

Parameters:
input the sequence of input vectors
ids the output classes ids for the input vectors.

Implements lti::supervisedInstanceClassifier.


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

Generated on Sat Apr 10 15:26:53 2010 for LTI-Lib by Doxygen 1.6.1