A quantizer for quantization of a vector comprises a codevector generator
that generates a set of candidate codevectors and a memory for storing an
illegal space definition representing illegal vectors. The quantizer also
includes a legal status tester that determines legal candidate
codevectors among the set of candidate codevectors using the illegal
space definition, and a codevector selector that determines a best legal
candidate codevector among the one or more legal candidate codevectors.
The vector includes parameters relating to a speech and/or audio signal,
such as Line Spectral Frequencies (LSFs).