VectorEncoding.productQuantizer constructor
Creates a product quantizer encoding.
This reduces the number of dimensions and bits per dimension. It splits the vectors into multiple subspaces and performing scalar quantization on each space independently before compression. This can produce higher quality results than Scalar Quantization at the cost of greater complexity.
subQuantizers
must be > 1 and a factor of vector dimensions.
bits
must be >= 4 and <= 12.
Implementation
factory VectorEncoding.productQuantizer({
required int subQuantizers,
required int bits,
}) => VectorEncodingImpl(
productQuantizerSubQuantizers: subQuantizers,
productQuantizerBits: bits,
);