fromVectors
This will read the float vector values and calculate the quantiles. If the number of float vectors is less than .SCALAR_QUANTIZATION_SAMPLE_SIZE then all the values will be read and the quantiles calculated. If the number of float vectors is greater than .SCALAR_QUANTIZATION_SAMPLE_SIZE then a random sample of .SCALAR_QUANTIZATION_SAMPLE_SIZE will be read and the quantiles calculated.
Return
A new ScalarQuantizer instance
Parameters
the float vector values from which to calculate the quantiles
the confidence interval used to calculate the quantiles
the total number of live float vectors in the index. This is vital for accounting for deleted documents when calculating the quantiles.
the number of bits to use for quantization
Throws
if there is an error reading the float vector values