Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval Class Reference

List of all members.

Public Member Functions

String toString ()

Protected Member Functions

 NumericInterval (String intervallo, double min, double max)
boolean belongs (double d)
double getMean (double[] values)
double getMedian (double[] values)
double getMin (double[] values)
double getMax (double[] values)

Detailed Description

This class represents a numeric interval, such as (70, 80].

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.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval.NumericInterval String  intervallo,
double  min,
double  max
[protected]
 

Constructor. Build the interval given a string representation of that interval and the minumum and maximum values for the training instances. The interval description can be: '(-inf - value]' '(value - value2]' '(value2 - -inf)' 'ALL'

Parameters:
intervallo string representing the interval
min minimum value of the discretization attribute
max maximum value of the discretization attribute


Member Function Documentation

String kddml.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval.toString  ) 
 

Get a string representation of the interval.

Returns:
String

boolean kddml.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval.belongs double  d  )  [protected]
 

Tests if a value belongs to the interval.

Parameters:
d double
Returns:
boolean

double kddml.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval.getMean double[]  values  )  [protected]
 

Get the mean of the input values belonging to the interval considered.

Parameters:
values double[] all values whose mean must be computed.
Returns:
double

double kddml.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval.getMedian double[]  values  )  [protected]
 

Get the median of the input values belonging to the interval considered.

Parameters:
values double[] all values whose median must be computed.
Returns:
double

double kddml.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval.getMin double[]  values  )  [protected]
 

Get the minimum of the input values belonging to the interval considered.

Parameters:
values double[] all values whose minimum must be computed.
Returns:
double

double kddml.Operators.Preprocessing.DiscretizationAlgorithms.NumericInterval.getMax double[]  values  )  [protected]
 

Get the minimum of the input values belonging to the interval considered.

Parameters:
values double[] all values whose minimum must be computed.
Returns:
double


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