multiScalarQuantize

Quantize the vector to the multiple bit levels.

Return

array of quantization results

Parameters

vector

raw vector

destinations

array of destinations to store the quantized vector

bits

array of bits to quantize the vector

centroid

centroid to center the vector