**Name**

**mk_codebook** Generate a random codebook

**Command Synopsis**

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

-n : Gaussian distribution instead of uniform

-mMean: Mean of coeff.

-vVar: Variance of coeff.

-sSize: size of codebook

-bBlockSize: Size of vector

CodeBook: Generated CodeBook (fimage)

**Function Summary**

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

int *Normal ;

double *Mean ;

double *Variance ;

int *Size ;

int *BlockSize ;

Fimage CodeBook ;

**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.

**See Also**

`flbg`.

**Version 2.01**

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

**Author**

Jean-Pierre D'Ales