Package smile.vq

Interface VectorQuantizer

All Superinterfaces:
Serializable
All Known Implementing Classes:
BIRCH, GrowingNeuralGas, NeuralGas, NeuralMap, SOM

public interface VectorQuantizer extends Serializable
Vector quantizer with competitive learning.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The label for outliers or noises.
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    quantize(double[] x)
    Quantize a new observation.
    void
    update(double[] x)
    Update the codebook with a new observation.
  • Field Details

  • 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.