Documentation of 'org.neuroph.nnet.learning.kmeans.Cluster' Java class
Cluster
org.neuroph.nnet.learning.kmeans

Class Cluster



  • public class Cluster
    extends java.lang.Object
    This class represents a single cluster, with corresponding centroid and assigned vectors
    • Constructor Detail

      • Cluster

        public Cluster()
    • Method Detail

      • getCentroid

        public KVector getCentroid()
      • setCentroid

        public void setCentroid(KVector centroid)
      • removePoint

        public void removePoint(KVector point)
      • getPoints

        public java.util.List<KVector> getPoints()
      • getAvgSum

        public double[] getAvgSum()
        Calculate and return avg sum vector for all vectors
        Returns:
        avg sum vector
      • equals

        public boolean equals(java.lang.Object obj)
        Returns true if two clusters have same centroid
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • assignVector

        public void assignVector(KVector vector)
        Assignes vector to this cluster.
        Parameters:
        vector - vector to assign
      • size

        public int size()
        Returns number of vectors assigned to this cluster.
        Returns:
        number of vectors assigned to this cluster

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.