Classes | |
class | itpp::Vector_Quantizer |
Class for vector quantization. More... | |
class | itpp::Scalar_Quantizer |
Class for vector quantization. More... | |
Functions | |
mat | itpp::vqtrain (Array< vec > &DB, int SIZE, int NOITER, double STARTSTEP=0.2, bool VERBOSE=true) |
Function for vector quantization training. |
mat itpp::vqtrain | ( | Array< vec > & | DB, | |
int | SIZE, | |||
int | NOITER, | |||
double | STARTSTEP = 0.2 , |
|||
bool | VERBOSE = true | |||
) |
Function for vector quantization training.
The following code illustrates how the VQ can be trained.
VQ Quantizer; mat A; Array<vec> database; // read vectors into database somehow ... // train a vq A = vqtrain(database, 1024, 1000000); Quantizer.set_codebook(A);