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

Class Cluster<T extends CentroidFactory<? super T>>

  • Type Parameters:
    T - The type of data to cluster.


    public class Cluster<T extends CentroidFactory<? super T>>
    extends java.lang.Object
    A cluster.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Cluster()
      Create an empty cluster.
      Cluster(T d)
      Create a cluster with one initial data point.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(T e)
      Add a element to the cluster.
      Centroid<? super T> centroid() 
      java.util.List<T> getContents() 
      void remove(int i)
      Remove the specified index from the cluster.
      • Methods inherited from class java.lang.Object

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

      • Cluster

        public Cluster()
        Create an empty cluster.
      • Cluster

        public Cluster(T d)
        Create a cluster with one initial data point.
        Parameters:
        d - The initial data point.
    • Method Detail

      • getContents

        public java.util.List<T> getContents()
        Returns:
        The contents of this cluster.
      • add

        public void add(T e)
        Add a element to the cluster.
        Parameters:
        e - The element to add.
      • remove

        public void remove(int i)
        Remove the specified index from the cluster.
        Parameters:
        i - The index to remove.
      • centroid

        public Centroid<? super T> centroid()
        Returns:
        The centroid of this cluster.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.