recalculateCorrectiveOffset

fun recalculateCorrectiveOffset(quantizedVector: ByteArray, oldQuantizer: ScalarQuantizer, similarityFunction: VectorSimilarityFunction): Float

Recalculate the old score corrective value given new current quantiles

Return

the new offset

Parameters

quantizedVector

the old vector

oldQuantizer

the old quantizer

similarityFunction

the similarity function used to calculate the quantile