Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.Clustering.ClusteringUtility Class Reference

List of all members.

Static Protected Member Functions

static double[] normalize (double[] doubles)
static double[] normalize (double[] doubles, double sum)
static double mean (double[] vector)
static int getMaxIndex (double[] array)
static int getMinIndex (double[] array)
static String doubleToString (double value, int afterDecimalPoint)
static String arrayToString (double[] d)

Detailed Description

Package clustering utility.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)
Version:
2.0.16


Member Function Documentation

static double [] kddml.Core.DataMining.Clustering.ClusteringUtility.normalize double[]  doubles  )  [static, protected]
 

Normalizes the doubles in the array by their sum.

Parameters:
doubles double[] the array of double
Returns:
double[] if sum is Zero or NaN

static double [] kddml.Core.DataMining.Clustering.ClusteringUtility.normalize double[]  doubles,
double  sum
[static, protected]
 

Normalizes the doubles in the array using the given value.

Parameters:
doubles the array of double
sum the value by which the doubles are to be normalized
Returns:
double[]

static double kddml.Core.DataMining.Clustering.ClusteringUtility.mean double[]  vector  )  [static, protected]
 

Computes the mean for an array of doubles.

Parameters:
vector the array
Returns:
the mean

static int kddml.Core.DataMining.Clustering.ClusteringUtility.getMaxIndex double[]  array  )  [static, protected]
 

Returns the index of the maximum element of an array.

Parameters:
array int[]
Returns:
int

static int kddml.Core.DataMining.Clustering.ClusteringUtility.getMinIndex double[]  array  )  [static, protected]
 

Returns the index of the minimum element of an array.

Parameters:
array int[]
Returns:
int

static String kddml.Core.DataMining.Clustering.ClusteringUtility.doubleToString double  value,
int  afterDecimalPoint
[static, protected]
 

Rounds a double and converts it into String.

Parameters:
value the double value
afterDecimalPoint the (maximum) number of digits permitted after the decimal point
Returns:
the double as a formatted string

static String kddml.Core.DataMining.Clustering.ClusteringUtility.arrayToString double[]  d  )  [static, protected]
 

Returns a representation of the input array as string.

Parameters:
d double[]
Returns:
String


Generated on Thu Feb 23 13:04:40 2006 for kddml by  doxygen 1.4.3