Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.Clustering.DiscreteStatisticField Class Reference

Inheritance diagram for kddml.Core.DataMining.Clustering.DiscreteStatisticField:

kddml.Core.DataMining.Clustering.StatisticField kddml.Core.DataMining.Clustering.DiscreteStatisticFieldManager kddml.Core.DataMining.Clustering.StatisticFieldManager kddml.Core.DataMining.Clustering.StatisticFieldManager List of all members.

Public Member Functions

 DiscreteStatisticField (String field_name)
boolean addValue (String value, double frequency)
boolean isContinuous ()
boolean isDiscrete ()
double getProbability (String value) throws ClusteringModelException
double[] getProbability () throws ClusteringModelException
String getProbableValue () throws ClusteringModelException
String[] getCategories ()
double[] getFrequencies ()
String toString ()

Detailed Description

This class represents a statistic field used in ClusterStatistic and contains statistical information about a single discrete mining field over the overall population.

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


Constructor & Destructor Documentation

kddml.Core.DataMining.Clustering.DiscreteStatisticField.DiscreteStatisticField String  field_name  ) 
 

Constructor given the field name. Builds an empty field, with no categories.

Parameters:
field_name String the field name as in MiningSchema.


Member Function Documentation

boolean kddml.Core.DataMining.Clustering.DiscreteStatisticField.addValue String  value,
double  frequency
 

Adds a new category with cluster frequency. Return true if the category is added to the field. Returns false if the field already contain the category name.

Parameters:
value String the field category value.
frequency double the cluster frequency. Do not include missing values.
Returns:
boolean

Implements kddml.Core.DataMining.Clustering.DiscreteStatisticFieldManager.

boolean kddml.Core.DataMining.Clustering.DiscreteStatisticField.isContinuous  )  [virtual]
 

Returns true if the field is continuous.

Returns:
boolean false

Implements kddml.Core.DataMining.Clustering.StatisticFieldManager.

boolean kddml.Core.DataMining.Clustering.DiscreteStatisticField.isDiscrete  )  [virtual]
 

Returns true if the field is discrete.

Returns:
boolean true

Implements kddml.Core.DataMining.Clustering.StatisticFieldManager.

double kddml.Core.DataMining.Clustering.DiscreteStatisticField.getProbability String  value  )  throws ClusteringModelException
 

Returns the probability value for the input category.

Parameters:
value String the input category.
Exceptions:
ClusteringModelException if the category is not found.
Returns:
double a value between 0 and 1.

Implements kddml.Core.DataMining.Clustering.DiscreteStatisticFieldManager.

double [] kddml.Core.DataMining.Clustering.DiscreteStatisticField.getProbability  )  throws ClusteringModelException
 

Returns the distribution probability of all categories. Ordering of the output object respects the ordering of the method getCategories().

Exceptions:
ClusteringModelException 
Returns:
double[] a normalization vector.

Implements kddml.Core.DataMining.Clustering.DiscreteStatisticFieldManager.

String kddml.Core.DataMining.Clustering.DiscreteStatisticField.getProbableValue  )  throws ClusteringModelException
 

Returns the must probable category value.

Exceptions:
ClusteringModelException 
Returns:
String

Implements kddml.Core.DataMining.Clustering.DiscreteStatisticFieldManager.

String [] kddml.Core.DataMining.Clustering.DiscreteStatisticField.getCategories  ) 
 

Returns the categories of this field. Ordering of the output object respects the ordering of the method getProbability().

Returns:
String[]

Implements kddml.Core.DataMining.Clustering.DiscreteStatisticFieldManager.

double [] kddml.Core.DataMining.Clustering.DiscreteStatisticField.getFrequencies  ) 
 

Returns the frequency of all categories. Missing value are not included. Ordering of the output object respects the ordering of the method getCategories().

Exceptions:
ClusteringModelException 
Returns:
double[]

Implements kddml.Core.DataMining.Clustering.DiscreteStatisticFieldManager.

String kddml.Core.DataMining.Clustering.DiscreteStatisticField.toString  ) 
 

Returns a representation of this object as string.

Returns:
String


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