|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class ParametricClusteringFunction
This class makes use of the helper/member functions defined and implemented in
ClusteringFitnessFunction to calculate a parameterised fitness of a particular
clustering in the calculateFitness method. See:
Field Summary | |
---|---|
protected ControlParameter |
w1
Specifies the weight that influences how much the intra-cluster-distance will contribute to the final fitness. |
protected ControlParameter |
w2
Specifies the weight that influences how much the inter-cluster-distance will contribute to the final fitness. |
protected double |
zMax
Stores the calculated zMax value. |
Fields inherited from class net.sourceforge.cilib.functions.clustering.ClusteringFitnessFunction |
---|
arrangedCentroids, arrangedClusters, clusterCenterStrategy, clustersFormed, helper |
Constructor Summary | |
---|---|
ParametricClusteringFunction()
|
Method Summary | |
---|---|
double |
calculateFitness()
|
ParametricClusteringFunction |
getClone()
Create a cloned copy of the current object and return it. |
protected double |
getW1()
Get the weight that the intra-cluster-distance contributes to the final fitness. |
protected double |
getW2()
Get the weight that determines how much influence inter-cluster-distance contributes to the final fitness. |
void |
setW1(ControlParameter w)
Set the weight that influences how much the intra-cluster-distance will contribute to the final fitness. |
void |
setW2(ControlParameter w)
Set the weight that influences how much the inter-cluster-distance will contribute to the final fitness. |
void |
updateControlParameters()
|
protected double |
zMax()
Calculate the maximum distance possible between two Vectors in the specified domain. |
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 |
---|
protected ControlParameter w1
protected ControlParameter w2
protected double zMax
Constructor Detail |
---|
public ParametricClusteringFunction()
Method Detail |
---|
public ParametricClusteringFunction getClone()
ContinuousFunction
getClone
in interface Cloneable
getClone
in class ClusteringFitnessFunction
Object.clone()
public double calculateFitness()
calculateFitness
in class ClusteringFitnessFunction
public void setW1(ControlParameter w)
w
- the ControlParameter that will control the w1 weight.protected double getW1()
public void setW2(ControlParameter w)
w
- the ControlParameter that will control the w2 weight.protected double getW2()
protected double zMax()
public void updateControlParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |