Documentation of 'smile.neighbor.SimpleNeighbor' Java class
SimpleNeighbor
smile.neighbor

Class SimpleNeighbor<T>

  • Type Parameters:
    T - the type of key/object.
    All Implemented Interfaces:
    java.lang.Comparable<Neighbor<T,T>>


    public class SimpleNeighbor<T>
    extends Neighbor<T,T>
    The simple neighbor object, in which key and object are the same.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SimpleNeighbor(T key, int index, double distance)
      Constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleNeighbor

        public SimpleNeighbor(T key,
                              int index,
                              double distance)
        Constructor.
        Parameters:
        key - the neighbor object.
        index - the index of neighbor object in the dataset.
        distance - the distance between the query and the neighbor.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.