quantize(v, n) Returns a vector that assigns the elements of v to n equally-spaced levels.
Quantization levels are chosen so that the lowest and highest levels are the minimum and maximum values of v.