## Uses of Class
org.apache.lucene.util.quantization.ScalarQuantizer

- Packages that use ScalarQuantizer
  Package | Description
  --- | ---
  org.apache.lucene.codecs.lucene99 | Lucene 9.9 file format.
  org.apache.lucene.util.quantization | Provides quantization methods for scaling vector values to smaller data types and possibly fewer dimensions

- - ### Uses of ScalarQuantizer in org.apache.lucene.codecs.lucene99

    Methods in org.apache.lucene.codecs.lucene99 that return ScalarQuantizer
    Modifier and Type | Method | Description
    --- | --- | ---
    `ScalarQuantizer` | Lucene99HnswVectorsReader.`getQuantizationState​(String field)` |
    `ScalarQuantizer` | Lucene99ScalarQuantizedVectorsReader.`getQuantizationState​(String fieldName)` |
    `static ScalarQuantizer` | Lucene99ScalarQuantizedVectorsWriter.`mergeAndRecalculateQuantiles​(MergeState mergeState, FieldInfo fieldInfo, float confidenceInterval)` | Merges the quantiles of the segments and recalculates the quantiles if necessary.

  - ### Uses of ScalarQuantizer in org.apache.lucene.util.quantization

    Methods in org.apache.lucene.util.quantization that return ScalarQuantizer
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ScalarQuantizer` | ScalarQuantizer.`fromVectors​(FloatVectorValues floatVectorValues, float confidenceInterval, int totalVectorCount)` | This will read the float vector values and calculate the quantiles.
    `ScalarQuantizer` | QuantizedVectorsReader.`getQuantizationState​(String fieldName)` |

    Methods in org.apache.lucene.util.quantization with parameters of type ScalarQuantizer
    Modifier and Type | Method | Description
    --- | --- | ---
    `static float` | ScalarQuantizedRandomVectorScorer.`quantizeQuery​(float[] query, byte[] quantizedQuery, VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer)` |
    `float` | ScalarQuantizer.`recalculateCorrectiveOffset​(byte[] quantizedVector, ScalarQuantizer oldQuantizer, VectorSimilarityFunction similarityFunction)` | Recalculate the old score corrective value given new current quantiles

    Constructors in org.apache.lucene.util.quantization with parameters of type ScalarQuantizer
    Constructor | Description
    --- | ---
    `ScalarQuantizedRandomVectorScorer​(VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer, RandomAccessQuantizedByteVectorValues values, float[] query)` |
    `ScalarQuantizedRandomVectorScorerSupplier​(VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer, RandomAccessQuantizedByteVectorValues values)` |