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

Class BasicMLDataCentroid

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


    public class BasicMLDataCentroid
    extends java.lang.Object
    implements Centroid<MLData>, java.lang.Cloneable
    A basic implementation of a centroid.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(MLData d)
      Add an element to the centroid.
      double distance(MLData d)
      The distance between this centroid and an element.
      void remove(MLData d)
      Remove an element from the centroid.
      • Methods inherited from class java.lang.Object

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

      • BasicMLDataCentroid

        public BasicMLDataCentroid(MLData o)
        Construct the centroid.
        Parameters:
        o - The object to base the centroid on.
    • Method Detail

      • add

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

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

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.