Documentation of 'org.encog.ml.data.basic.BasicMLDataPairCentroid' Java class
BasicMLDataPairCentroid
org.encog.ml.data.basic

Class BasicMLDataPairCentroid

  • All Implemented Interfaces:
    java.lang.Cloneable, Centroid<MLDataPair>


    public class BasicMLDataPairCentroid
    extends java.lang.Object
    implements Centroid<MLDataPair>, java.lang.Cloneable
    A centroid for BasicMLDataPair.
    • Constructor Detail

      • BasicMLDataPairCentroid

        public BasicMLDataPairCentroid(BasicMLDataPair o)
        Construct the centroid.
        Parameters:
        o - The pair to base the centroid on.
    • Method Detail

      • remove

        public void remove(MLDataPair d)
        Remove an element from the centroid.
        Specified by:
        remove in interface Centroid<MLDataPair>
        Parameters:
        d - The element to remove.
      • distance

        public double distance(MLDataPair d)
        The distance between this centroid and an element.
        Specified by:
        distance in interface Centroid<MLDataPair>
        Parameters:
        d - The element.
        Returns:
        The distance.
      • add

        public void add(MLDataPair d)
        Add an element to the centroid.
        Specified by:
        add in interface Centroid<MLDataPair>
        Parameters:
        d - The element to add.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.