我要评分
获取效率
正确性
完整性
易理解

API Description

Table 1 describes the interfaces provided by KVecTurbo.

Table 1 Interfaces 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.