net.sourceforge.cilib.functions.clustering.validityindices
Class HalkidiVazirgiannisIndex

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.validityindices.HalkidiVazirgiannisIndex
All Implemented Interfaces:
Serializable, Cloneable

public class HalkidiVazirgiannisIndex
extends ClusteringFitnessFunction

This is the Halkidi-Vazirgiannis Validity Index. The index is described in:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.functions.clustering.ClusteringFitnessFunction
arrangedCentroids, arrangedClusters, clusterCenterStrategy, clustersFormed, helper
 
Constructor Summary
HalkidiVazirgiannisIndex()
          Create a new instance of HalkidiVazirgiannisIndex.
 
Method Summary
protected  double calculateBetweenClusterSeperation()
          Calculate the distances between cluster separation.
 double calculateFitness()
          
protected  double calculateWithinClusterScatter()
          The variance of the dataset is calculated using the dataset mean, whereas the variance of a specific cluster is calculated using the specific cluster's center as determined by the ClusterCenterStrategy.
 HalkidiVazirgiannisIndex 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

HalkidiVazirgiannisIndex

public HalkidiVazirgiannisIndex()
Create a new instance of HalkidiVazirgiannisIndex.

Method Detail

calculateFitness

public double calculateFitness()

Specified by:
calculateFitness in class ClusteringFitnessFunction

calculateWithinClusterScatter

protected double calculateWithinClusterScatter()
The variance of the dataset is calculated using the dataset mean, whereas the variance of a specific cluster is calculated using the specific cluster's center as determined by the ClusterCenterStrategy.

Returns:
the within-cluster-scatter for the specific clustering

calculateBetweenClusterSeperation

protected double calculateBetweenClusterSeperation()
Calculate the distances between cluster separation.

Returns:
The distance between cluster separation.

getClone

public HalkidiVazirgiannisIndex getClone()
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.