Documentation of 'jsat.linear.vectorcollection.IndexDistPair' Java class
IndexDistPair
jsat.linear.vectorcollection

Class IndexDistPair

  • All Implemented Interfaces:
    java.lang.Comparable<IndexDistPair>


    public class IndexDistPair
    extends java.lang.Object
    implements java.lang.Comparable<IndexDistPair>
    This class exists as a helper method for use with nearest neighbor implementations. It stores an integer to represent the index of a vector, and a double to store the distance of the index to a given query.
    • Constructor Detail

      • IndexDistPair

        public IndexDistPair(int indx,
                             double dist)
    • Method Detail

      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex(int indx)
      • getDist

        public double getDist()
      • setDist

        public void setDist(double dist)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.