class KMeans


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

Public Methods

Protected Members


Detailed Description

vector<vector<float> > means

[protected]

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

int  nbClasses ()

[const]

Reimplemented from VQ.

const vector<float> & operator[] (int i)

[const]

void  split (const vector<float *> &data, int len)

void  bsplit ()

void  update (const vector<float *> &data, int len)

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

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

[const]

Reimplemented from VQ.

void  calcDist (const float *v, float *dist_return)

[const virtual]

void  weightMeans (const Vector<float> &w, Vector<float> &out)

[const]

void  printOn (ostream &out=cout)

[const]

Reimplemented from VQ.

void  readFrom (istream &in=cin)

Reimplemented from VQ.

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


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