com.rapidminer.operator.clustering
Class Centroid

java.lang.Object
  extended by com.rapidminer.operator.clustering.Centroid
All Implemented Interfaces:
java.io.Serializable

public class Centroid
extends java.lang.Object
implements java.io.Serializable

This class represents a single centroid used for centroid based clustering. It also provides methods for centroid calculation of a number of examples.

Author:
Sebastian Land
See Also:
Serialized Form

Constructor Summary
Centroid(int numberOfDimensions)
           
 
Method Summary
 void assignExample(double[] exampleValues)
           
 boolean finishAssign()
           
 double[] getCentroid()
           
 void setCentroid(double[] coordinates)
           
 java.lang.String toString(java.util.Collection<java.lang.String> dimensionNames)
          This method only returns the first 100 attributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Centroid

public Centroid(int numberOfDimensions)
Method Detail

getCentroid

public double[] getCentroid()

setCentroid

public void setCentroid(double[] coordinates)

assignExample

public void assignExample(double[] exampleValues)

finishAssign

public boolean finishAssign()

toString

public java.lang.String toString(java.util.Collection<java.lang.String> dimensionNames)
This method only returns the first 100 attributes



Copyright © 2001-2009 by Rapid-I