Package smile.vq
Interface VectorQuantizer
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BIRCH
,GrowingNeuralGas
,NeuralGas
,NeuralMap
,SOM
Vector quantizer with competitive learning.
-
Field Summary
-
Method Summary
-
Field Details
-
OUTLIER
static final int OUTLIERThe label for outliers or noises.- See Also:
-
-
Method Details
-
update
void update(double[] x) Update the codebook with a new observation.- Parameters:
x
- a new observation.
-
quantize
double[] quantize(double[] x) Quantize a new observation. Returns Optional.empty if the observation is noise.- Parameters:
x
- a new observation.- Returns:
- the quantized vector.
-