mk_codebook Generate a random codebook
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)
void mk_codebook (Normal , Mean , Variance , Size , BlockSize , CodeBook )
int *Normal ;
double *Mean ;
double *Variance ;
int *Size ;
int *BlockSize ;
Fimage CodeBook ;
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.
Last Modification date : Thu Nov 29 20:23:57 2001