quantize

fun quantize(src: FloatArray, dest: ByteArray, similarityFunction: VectorSimilarityFunction): Float

Quantize a float vector into a byte vector

Return

the corrective offset that needs to be applied to the score

Parameters

src

the source vector

dest

the destination vector

similarityFunction

the similarity function used to calculate the quantile