Interface CentroidSupplier


public interface CentroidSupplier
An interface for that supply centroids.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.index.FloatVectorValues
     
    float[]
    centroid(int centroidOrdinal)
     
    fromArray(float[][] centroids, int dims)
     
    int
     
  • Method Details

    • size

      int size()
    • centroid

      float[] centroid(int centroidOrdinal) throws IOException
      Throws:
      IOException
    • asFloatVectorValues

      org.apache.lucene.index.FloatVectorValues asFloatVectorValues() throws IOException
      Throws:
      IOException
    • fromArray

      static CentroidSupplier fromArray(float[][] centroids, int dims)