class MSVQ

This is a multi-stage vector quantization class, and has nothing to do with microsoft :-) More...

Definition#include <VQ/include/msvq.h>
InheritsVQ
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

This is a multi-stage vector quantization class, and has nothing to do with microsoft :-)

vector<int> stagesSizes

[protected]

vector<KMeans> stages

[protected]

 MSVQ (float (*_dist)(const float *, const float*, int) = KMeans::euclidian) : VQ(_dist)

 MSVQ (const vector<int> &_stagesSizes, float (*_dist)(const float *, const float*, int) = KMeans::euclidian)

int  ID2Vec (const vector<int> &vec)

[const]

vector<int>  Vec2ID (int ID)

[const]

int  nbClasses ()

[const]

Reimplemented from VQ.

int  nbStages ()

[const]

void  train (const vector<float *> &data, int len, bool binary=false)

int  getClassID (const float *v, float *dist_return = NULL)

[const]

Reimplemented from VQ.

void  printOn (ostream &out=cout)

[const]

Reimplemented from VQ.

void  readFrom (istream &in=cin)

Reimplemented from VQ.

friend istream & operator >> (istream &in, MSVQ &mdl)


Generated by: jmvalin@usw-pr-shell2 on Mon Jun 24 00:06:43 2002, using kdoc 2.0a40.