ComputePQTable
API definition |
int ComputePQTable(VectorArrayData *sample, DiskPQParams *params); |
|---|---|
Function |
Calculates the PQ codebook based on the sampling data stored in sample and stores the codebook-related data in params. |
Input |
VectorArrayData *sample: pointer to a VectorArrayData instance populated with sampling data. It cannot be a null pointer. DiskPQParams *params: pointer to the DiskPQParams instance that contains only PQ parameters and does not pad the trained PQ data. It cannot be a null pointer. |
Output |
N/A |
Return value |
int: The return value 0 indicates a normal process; and -1 indicates an abnormal process, with error details output to cerr. |
Restrictions |
|