Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.ClassificationTrees.SimpleComparisonPredicate Class Reference

Inheritance diagram for kddml.Core.DataMining.ClassificationTrees.SimpleComparisonPredicate:

kddml.Core.DataMining.ClassificationTrees.SimplePredicate kddml.Core.DataMining.ClassificationTrees.Predicate List of all members.

Public Member Functions

 SimpleComparisonPredicate (String field, String value, ComparisonOperator op_code)
 SimpleComparisonPredicate (String field, double value, ComparisonOperator op_code)
PredicateEvaluation evaluate (Object instance) throws TreeModelException
String toString ()

Protected Member Functions

 SimpleComparisonPredicate (Element elem) throws TreeModelException
Element toXML ()

Detailed Description

A SimpleComparisonPredicate consists of a single comparison between a logical attribute value and a constant. The constant can be either numeric or categorical. A SimpleComparisonPredicate consists of three major parts:
  1. a comparison operator (equal, notEqual, lessThan, lessOrEqual, greaterThan, greaterOrEqual).
  2. the name entry of one of the mining field elements at the mining schema.
  3. the information to evaluate / compare against.

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.ClassificationTrees.SimpleComparisonPredicate.SimpleComparisonPredicate String  field,
String  value,
ComparisonOperator  op_code
 

Constructor for a numeric comparison.

Parameters:
field String
value String
op_code ComparisonOperator

kddml.Core.DataMining.ClassificationTrees.SimpleComparisonPredicate.SimpleComparisonPredicate String  field,
double  value,
ComparisonOperator  op_code
 

Constructor for a categorical comparison.

Parameters:
field String
value double
op_code ComparisonOperator

kddml.Core.DataMining.ClassificationTrees.SimpleComparisonPredicate.SimpleComparisonPredicate Element  elem  )  throws TreeModelException [protected]
 

Proprietary constructor given the XML element.

Parameters:
elem Element
Exceptions:
TreeModelException 


Member Function Documentation

PredicateEvaluation kddml.Core.DataMining.ClassificationTrees.SimpleComparisonPredicate.evaluate Object  instance  )  throws TreeModelException [virtual]
 

Evaluates this predicate on a single instance.

Parameters:
instance Object
Exceptions:
TreeModelException 
Returns:
PredicateEvaluation

Implements kddml.Core.DataMining.ClassificationTrees.Predicate.

String kddml.Core.DataMining.ClassificationTrees.SimpleComparisonPredicate.toString  )  [virtual]
 

Returns a representation of this object as string.

Returns:
String

Implements kddml.Core.DataMining.ClassificationTrees.Predicate.

Element kddml.Core.DataMining.ClassificationTrees.SimpleComparisonPredicate.toXML  )  [protected, virtual]
 

Returns the XML element representing this predicate.

Returns:
Element

Implements kddml.Core.DataMining.ClassificationTrees.Predicate.


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