Documentation of 'org.neuroph.nnet.learning.knn.KNearestNeighbour' Java class
KNearestNeighbour
org.neuroph.nnet.learning.knn

Class KNearestNeighbour



  • public class KNearestNeighbour
    extends java.lang.Object
    for given vector calculate distances to all vectors from list and finds minimum vector or sort vectors by distance and seelct
    • Constructor Detail

      • KNearestNeighbour

        public KNearestNeighbour()
    • Method Detail

      • getKNearestNeighbours

        public KVector[] getKNearestNeighbours(KVector vector,
                                               int k)
        http://en.wikipedia.org/wiki/Selection_algorithm
        Parameters:
        vector -
        k -
        Returns:
      • getDataSet

        public java.util.List<KVector> getDataSet()
      • setDataSet

        public void setDataSet(java.util.List<KVector> dataSet)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.