net.sourceforge.cilib.functions.clustering
Class ParametricWithQuantisationErrorFunction

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.ParametricClusteringFunction
                  extended by net.sourceforge.cilib.functions.clustering.ParametricWithQuantisationErrorFunction
All Implemented Interfaces:
Serializable, Cloneable

public class ParametricWithQuantisationErrorFunction
extends ParametricClusteringFunction

This class makes use of the helper/member functions defined and implemented in {@linkplain ClusteringFitnessFunction) to calculate an improved parameterised fitness of a particular clustering in the calculateFitness method. See:

Author:
Theuns Cloete
See Also:
Serialized Form

Field Summary
protected  ControlParameter w3
          Specifies the weight that incluences how much the Quantisation Error will contribute to the final fitness.
 
Fields inherited from class net.sourceforge.cilib.functions.clustering.ParametricClusteringFunction
w1, w2, zMax
 
Fields inherited from class net.sourceforge.cilib.functions.clustering.ClusteringFitnessFunction
arrangedCentroids, arrangedClusters, clusterCenterStrategy, clustersFormed, helper
 
Constructor Summary
ParametricWithQuantisationErrorFunction()
          Create a new instance of ParametricWithQuantisationErrorFunction.
 
Method Summary
 double calculateFitness()
          
protected  double getW3()
          Get the weight that the Quantisation Error contributes to the final fitness.
 void setW3(ControlParameter w)
          Set the weight that influences how much the Quantisation Error will contribute to the final fitness.
 void updateControlParameters()
          
 
Methods inherited from class net.sourceforge.cilib.functions.clustering.ParametricClusteringFunction
getClone, getW1, getW2, setW1, setW2, zMax
 
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
 

Field Detail

w3

protected ControlParameter w3
Specifies the weight that incluences how much the Quantisation Error will contribute to the final fitness.

Constructor Detail

ParametricWithQuantisationErrorFunction

public ParametricWithQuantisationErrorFunction()
Create a new instance of ParametricWithQuantisationErrorFunction.

Method Detail

calculateFitness

public double calculateFitness()

Overrides:
calculateFitness in class ParametricClusteringFunction

setW3

public void setW3(ControlParameter w)
Set the weight that influences how much the Quantisation Error will contribute to the final fitness.

Parameters:
w - the ControlParameter that will control the w1 weight

getW3

protected double getW3()
Get the weight that the Quantisation Error contributes to the final fitness.

Returns:
the weight that determines how much influence the Quantisation Error contributes to the final fitness

updateControlParameters

public void updateControlParameters()

Overrides:
updateControlParameters in class ParametricClusteringFunction


Copyright © 2009 CIRG. All Rights Reserved.