Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.Preprocessing.DiscretizationAlgorithms.DiscretizationAlgorithmResolverTask Interface Reference

Inheritance diagram for kddml.Operators.Preprocessing.DiscretizationAlgorithms.DiscretizationAlgorithmResolverTask:

kddml.Operators.Preprocessing.PPAlgorithmResolverTask kddml.Operators.AlgorithmResolverTask kddml.Operators.Preprocessing.DiscretizationAlgorithms.EQUAL_FREQUENCY_DISCRETIZATION_RESOLVER kddml.Operators.Preprocessing.DiscretizationAlgorithms.NATURAL_BINNING_DISCRETIZATION_RESOLVER List of all members.

Public Member Functions

Object[] discretize (Double[] values) throws ResolverException
boolean isNumericLabeling ()
void readDiscretizationAttributeStatistics (NumericalStatisticManager stat) throws ResolverException, KDDMLCoreException

Detailed Description

An interface for discretization algorithms resolving.

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

Object [] kddml.Operators.Preprocessing.DiscretizationAlgorithms.DiscretizationAlgorithmResolverTask.discretize Double[]  values  )  throws ResolverException
 

Main method that discretizes the input values related to an attribute. Input values are given as array of Doubles where missing values are represented as null objects. The operator returns the discretized values as array, where missing values are represented as null object. The order in wich values appear in the arrays corresponds to the order in wich they appear in the preprocessing table. So, the size of the input and output array is equal to the total number of instances. According to the labeling technique, the result of a discretization process can be either numeric (e.g. the mean of the bin) or nominal (e.g. a labels used to replace each instance value belonging to the bin). In the first case, the method returs an array of Double objects. Otherwise, it returns an array of String objects.

Parameters:
values Double[] the input values to discretize. Null objects correspond to missing values for that instance.
Returns:
Object[] the discretized values. Returns an array of Double if the method isNumericLabeling() returns true. Returns an array of String if the method isNumericLabeling() return false. Null objects correspond to missing values for that instance.
Exceptions:
ResolverException if an error occurs.

Implemented in kddml.Operators.Preprocessing.DiscretizationAlgorithms.EQUAL_FREQUENCY_DISCRETIZATION_RESOLVER, and kddml.Operators.Preprocessing.DiscretizationAlgorithms.NATURAL_BINNING_DISCRETIZATION_RESOLVER.

boolean kddml.Operators.Preprocessing.DiscretizationAlgorithms.DiscretizationAlgorithmResolverTask.isNumericLabeling  ) 
 

Specifies the type of labeling to be used. Return true if the result of the discretization process is numeric (e.g. the mean of the bin). Returns false if the result of the discretization process is nominal (e.g. a labels used to replace each instance value belonging to the bin).

Returns:
boolean

Implemented in kddml.Operators.Preprocessing.DiscretizationAlgorithms.EQUAL_FREQUENCY_DISCRETIZATION_RESOLVER, and kddml.Operators.Preprocessing.DiscretizationAlgorithms.NATURAL_BINNING_DISCRETIZATION_RESOLVER.

void kddml.Operators.Preprocessing.DiscretizationAlgorithms.DiscretizationAlgorithmResolverTask.readDiscretizationAttributeStatistics NumericalStatisticManager  stat  )  throws ResolverException, KDDMLCoreException
 

Reads the data statistics related to the input discretization attribute. Data statistic can be used to provide additional information to preprocessing algorithm, such as the minimum and maximum value of the attribute.

Parameters:
stat NumericalStatisticManager
Exceptions:
ResolverException 
KDDMLCoreException 

Implemented in kddml.Operators.Preprocessing.DiscretizationAlgorithms.EQUAL_FREQUENCY_DISCRETIZATION_RESOLVER, and kddml.Operators.Preprocessing.DiscretizationAlgorithms.NATURAL_BINNING_DISCRETIZATION_RESOLVER.


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