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

GetPQDistanceTableAdc

API Definition

int GetPQDistanceTableAdc(float* vector, const PQParams *params, float *pqDistanceTable);

Function

Calculate the PQ ADC distance table, that is, calculate the distance between the query vector and the cluster centroids in each subspace.

Parameters

Parameter

Description

Data Type

Value Range

vector

Original vector.

float*

The value cannot be null.

pqDistanceTable

ADC distance table. It can also be used as an output value.

float*

The value cannot be null.

PQParams

For details, see the description of PQParams in Structure Description.

Return Value

Data Type

Description

int

The value 0 is returned when the system runs properly, and the value -1 is returned when the system exits abnormally.