next up previous contents index
Next: mk_trainset Up: Reference Previous: fvq   Contents   Index

mk_codebook

$ \bigcirc$Name


mk_codebook Generate a random codebook




$ \bigcirc$Command Synopsis


mk_codebook [-n] [-m Mean] [-v Var] [-s Size] [-b BlockSize] CodeBook



-n : Gaussian distribution instead of uniform

-m Mean : Mean of coeff.

-v Var : Variance of coeff.

-s Size : size of codebook

-b BlockSize : Size of vector

CodeBook : Generated CodeBook (fimage)




$ \bigcirc$Function Summary


void mk_codebook (Normal , Mean , Variance , Size , BlockSize , CodeBook )

int *Normal ;

double *Mean ;

double *Variance ;

int *Size ;

int *BlockSize ;

Fimage CodeBook ;




$ \bigcirc$Description


mk_codebook enables to generate random codebooks to be used as initial data for the LBG algorithm (see flbg module documentation). The coordinates of the vectors are considered as i.i.d. random variables. Their distribution is either normal (if the -n option is selected) or uniform. One can choose also their mean and variance with the help of the -m and -v options. The -s and -b options permit to control the size of codebook and the size of vectors in codebook.

As a matter of fact, it is not necessary to consider the output of mk_codebook as a codebook. It is merely a random matrix of i.i.d. floating point. It can thus be used for other purposes than creation of random codebooks.




$ \bigcirc$See Also


flbg.


$ \bigcirc$Version 2.01


Last Modification date : Thu Nov 29 20:23:57 2001


$ \bigcirc$Author


Jean-Pierre D'Ales






next up previous contents index
Next: mk_trainset Up: Reference Previous: fvq   Contents   Index
mw 2004-05-05