Documentation of 'org.encog.util.kmeans.Centroid' Java class
Centroid
org.encog.util.kmeans

Interface Centroid<O>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void add(O e)
      Add an element to the centroid.
      double distance(O o)
      The distance between this centroid and an element.
      void remove(O o)
      Remove an element from the centroid.
    • Method Detail

      • add

        void add(O e)
        Add an element to the centroid.
        Parameters:
        e - The element to add.
      • remove

        void remove(O o)
        Remove an element from the centroid.
        Parameters:
        o - The element to remove.
      • distance

        double distance(O o)
        The distance between this centroid and an element.
        Parameters:
        o - The element.
        Returns:
        The distance.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.