net.sourceforge.cilib.math
Class Stats

java.lang.Object
  extended by net.sourceforge.cilib.math.Stats

public final class Stats
extends Object

Some simple methods for determining some statistics.


Method Summary
static double mean(Vector vector)
           
static Vector meanVector(Collection<ClusterableDataSet.Pattern> set)
          Calculates the mean Vector of the given set/cluster/collection of ClusterableDataSet.Patterns.
static double stdDeviation(Vector vector)
           
static double variance(Collection<ClusterableDataSet.Pattern> set, Vector center)
          Calculates the variance of the given set/cluster/collection of @{link Pattern}s.
static double variance(Vector vector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mean

public static double mean(Vector vector)
Parameters:
vector -
Returns:

meanVector

public static Vector meanVector(Collection<ClusterableDataSet.Pattern> set)
Calculates the mean Vector of the given set/cluster/collection of ClusterableDataSet.Patterns. This is illustrated in Equation 4.b of:

Parameters:
set - a set (ArrayList) of ClusterableDataSet.Patterns
Returns:
a Vector that represents the mean/center of the given set

variance

public static double variance(Vector vector)
Parameters:
vector -
Returns:

variance

public static double variance(Collection<ClusterableDataSet.Pattern> set,
                              Vector center)
Calculates the variance of the given set/cluster/collection of @{link Pattern}s. This is illustrated in Equation 4.c of:
@InProceedings{ 657864, author = "Maria Halkidi and Michalis Vazirgiannis", title = "Clustering Validity Assessment: Finding the Optimal Partitioning of a Data Set", booktitle = "Proceedings of the IEEE International Conference on Data Mining", year = "2001", isbn = "0-7695-1119-8", pages = "187--194", publisher = "IEEE Computer Society", address = "Washington, DC, USA" }

Parameters:
set - a set (ArrayList) of ClusterableDataSet.Patterns
center - a Vector that represents the mean/center of the accompanied set
Returns:
a double representing the variance of the given set with the given center

stdDeviation

public static double stdDeviation(Vector vector)
Parameters:
vector -
Returns:


Copyright © 2009 CIRG. All Rights Reserved.