public class SilhouetteIndex
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.lang.Double> |
m_clustersSilhouette
Clusters SI.
|
protected double |
m_globalSilhouette
Global SI.
|
Constructor and Description |
---|
SilhouetteIndex()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
evalSilhouette(double si)
Evaluates a given silhouette index result.
|
void |
evaluate(weka.clusterers.AbstractClusterer clusterer,
weka.core.Instances centroids,
weka.core.Instances instances,
weka.core.DistanceFunction distanceFunction)
Evaluates the clusterer quality, using the Silhouette-Index
algorithm.
|
java.util.ArrayList<java.lang.Double> |
getClustersSilhouette()
Gets the silhouetteIndex for all clusters.
|
double |
getGlobalSilhouette()
Gets the global silhouette, i.e: the mean silhouette of
all points.
|
java.lang.String |
toString()
Returns a string describing the br.otimizes.oplatool.core.jmetal4.results.
|
protected java.util.ArrayList<java.lang.Double> m_clustersSilhouette
protected double m_globalSilhouette
public void evaluate(weka.clusterers.AbstractClusterer clusterer, weka.core.Instances centroids, weka.core.Instances instances, weka.core.DistanceFunction distanceFunction) throws java.lang.Exception
clusterer
- given clusterer.instances
- dataset.java.lang.Exception
public java.util.ArrayList<java.lang.Double> getClustersSilhouette()
public double getGlobalSilhouette()
public java.lang.String evalSilhouette(double si)
si
- Silhouette-Index.public java.lang.String toString()
toString
in class java.lang.Object