Routines for use in Vector Quantization vector_allocate Routine for allocating memory for a vector. matrix_allocate Routine for allocating a list of vectors. matrix_reallocate Routine for reallocating a list of vectors. read_vector_file Routine for reading list of vectors from file. cat_vector Routine for concatenating an array of vectors to another. free_vectors Routine for freeing list of vectors. vector_copy Routine for copying a vector to another (both ending up with the same information). vector_add Routine for adding a vector to another. vector_multiply Routine for multiplying a vector by a constant value. vector_split Routine for splitting a vector into 2 vectors. vector_distance Routine for calculating distance between two vectors. vector_classify Routine for finding nearest codebook vector. centroid Calculate the centroid for a group of vectors. distortion Calculate the distortion of a group of vectors in relation to a codebook. |