DiskPQParams
API definition |
DiskPQParams { int pqChunks = 512; int funcType = 1; int dim = 1; char *pqTable = nullptr; uint32_t *offsets = nullptr; char *tablesTransposed = nullptr; char *centroids = nullptr; } |
|---|---|
Function |
Defines the PQ structure. |
Input |
N/A |
Output |
N/A |
Parameter |
int pqChunks: divides the original vector dimension into pqChunks. int funcType: standard used for PQ lookup table distance calculation. int dim: original data dimension. char *pqTable: pointer for storing the codebook data. The default value is nullptr. uint32_t *offsets: start and end dimensions of each chunk in the original dimension. The default value is nullptr. char *tablesTransposed: pointer for storing the transposed codebook data. The default value is nullptr. char *centroids: average value of each dimension, which is used to centralize data. The default value is nullptr. |
Restrictions |
|