net.sourceforge.cilib.functions.clustering
Class QuantisationErrorFunction

java.lang.Object
  extended by net.sourceforge.cilib.functions.Function
      extended by net.sourceforge.cilib.functions.ContinuousFunction
          extended by net.sourceforge.cilib.functions.clustering.ClusteringFitnessFunction
              extended by net.sourceforge.cilib.functions.clustering.QuantisationErrorFunction
All Implemented Interfaces:
Serializable, Cloneable

public class QuantisationErrorFunction
extends ClusteringFitnessFunction

This class makes use of the helper/member functions defined and implemented in ClusteringFitnessFunction to calculate the Quantisation Error of a particular clustering in the calculateFitness method. See:

Author:
Theuns Cloete
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.functions.clustering.ClusteringFitnessFunction
arrangedCentroids, arrangedClusters, clusterCenterStrategy, clustersFormed, helper
 
Constructor Summary
QuantisationErrorFunction()
           
 
Method Summary
 double calculateFitness()
           
 QuantisationErrorFunction getClone()
          Create a cloned copy of the current object and return it.
 
Methods inherited from class net.sourceforge.cilib.functions.clustering.ClusteringFitnessFunction
calculateAverageIntraClusterDistance, calculateAverageSetDistance, calculateClusterDiameter, calculateIntraClusterDistance, calculateMaximumAverageDistance, calculateMaximumInterClusterDistance, calculateMaximumSetDistance, calculateMinimumInterClusterDistance, calculateMinimumSetDistance, calculateQuantisationError, evaluate, getMaximum, getMinimum, setClusterCenterStrategy, validateFitness, worstFitness
 
Methods inherited from class net.sourceforge.cilib.functions.ContinuousFunction
evaluate
 
Methods inherited from class net.sourceforge.cilib.functions.Function
getBehavioralDomainRegistry, getDimension, getDomain, getDomainRegistry, setBehavioralDomain, setBehaviouralDomainRegistry, setDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuantisationErrorFunction

public QuantisationErrorFunction()
Method Detail

calculateFitness

public double calculateFitness()
Specified by:
calculateFitness in class ClusteringFitnessFunction

getClone

public QuantisationErrorFunction getClone()
Description copied from class: ContinuousFunction
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class ClusteringFitnessFunction
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()


Copyright © 2009 CIRG. All Rights Reserved.