public final class DoubleProductQuantiserUtilities extends Object
ByteProductQuantiser
using
(Exact) K-Means.Modifier and Type | Method and Description |
---|---|
static DoubleProductQuantiser |
train(double[][] data,
int numAssigners,
int nIter)
Learn a
DoubleProductQuantiser by applying exact K-Means to
sub-vectors extracted from the given data. |
static DoubleProductQuantiser |
train(double[][] data,
int numAssigners,
int K,
int nIter)
Learn a
DoubleProductQuantiser by applying exact K-Means to
sub-vectors extracted from the given data. |
public static DoubleProductQuantiser train(double[][] data, int numAssigners, int K, int nIter)
DoubleProductQuantiser
by applying exact K-Means to
sub-vectors extracted from the given data. The length of the subvectors
is determined by dividing the vector length by the requested number of
assigners. The number of clusters per vector subset is constant, and must
be less than 256.data
- the data to train the DoubleProductQuantiser
on.numAssigners
- the number of sub-quantisers to learnK
- the number of centroids per sub-quantisernIter
- the maximum number of iterations for each k-means clusteringDoubleProductQuantiser
.public static DoubleProductQuantiser train(double[][] data, int numAssigners, int nIter)
DoubleProductQuantiser
by applying exact K-Means to
sub-vectors extracted from the given data. The length of the subvectors
is determined by dividing the vector length by the requested number of
assigners. The number of clusters per vector subset is constant, and set
at 256.data
- the data to train the DoubleProductQuantiser
on.numAssigners
- the number of sub-quantisers to learnnIter
- the maximum number of iterations for each k-means clusteringDoubleProductQuantiser
.