net.sourceforge.cilib.functions.clustering
Class ParametricWithQuantisationErrorFunction
java.lang.Object
net.sourceforge.cilib.functions.Function
net.sourceforge.cilib.functions.ContinuousFunction
net.sourceforge.cilib.functions.clustering.ClusteringFitnessFunction
net.sourceforge.cilib.functions.clustering.ParametricClusteringFunction
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
w3
protected ControlParameter w3
- Specifies the weight that incluences how much the Quantisation Error will contribute to the final fitness.
ParametricWithQuantisationErrorFunction
public ParametricWithQuantisationErrorFunction()
- Create a new instance of ParametricWithQuantisationErrorFunction.
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.