API Description
Table 1 describes the APIs provided by KVecturbo.
API |
Function |
|---|---|
ComputePQTable |
Calculates the PQ codebook. |
ComputeVectorPQCode |
Quantizes the input vector based on the PQ codebook. |
GetPQDistanceTableSdc |
Calculates the PQ SDC distance table, that is, calculates the distance between the cluster centroids in each subspace. |
GetPQDistanceTableAdc |
Calculates the PQ ADC distance table, that is, calculates the distance between the query vector and the cluster centroids in each subspace. |
GetPQDistance |
Calculates the PQ ADC or SDC distance. If querycode == NULL, the ADC distance is calculated. If querycode != NULL, the SDC distance is calculated. |
Parent topic: KVecturbo APIs