Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.ClassificationTrees.CompoundBooleanPredicate Class Reference

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

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

Public Member Functions

 CompoundBooleanPredicate (Predicate[] predicates, BooleanOperator operator)
 CompoundBooleanPredicate (Element elem) throws TreeModelException
PredicateEvaluation evaluate (Object instance) throws TreeModelException
PredicateEvaluation evaluateSURROGATE (Instance instance) throws TreeModelException
int getSize ()
String toString ()

Protected Member Functions

Element toXML ()

Detailed Description

A CompundPredicate is a set of predicates connected by logical or relational operators. For example, "age < 30 AND salary > 50K" is a compound predicate which is connected by a boolean and operator.

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.CompoundBooleanPredicate.CompoundBooleanPredicate Predicate[]  predicates,
BooleanOperator  operator
 

Constructor given a boolean operator and an array of predicates.

Parameters:
predicates Predicate[]
operator BooleanOperator

kddml.Core.DataMining.ClassificationTrees.CompoundBooleanPredicate.CompoundBooleanPredicate Element  elem  )  throws TreeModelException
 

Proprietary constructor given the XML element.

Parameters:
elem Element
Exceptions:
TreeModelException if the XML element is not valid.


Member Function Documentation

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

Evaluates this predicate on a single input instance.

Parameters:
instance Object the input instance.
Exceptions:
TreeModelException 
Returns:
PredicateEvaluation the evaluation result of this predicate.

Implements kddml.Core.DataMining.ClassificationTrees.Predicate.

PredicateEvaluation kddml.Core.DataMining.ClassificationTrees.CompoundBooleanPredicate.evaluateSURROGATE Instance  instance  )  throws TreeModelException
 

The operator surrogate provides a special means to handle logical expressions with missing values. It is applied to a sequence of predicates. The order of the predicates matters, the first predicate is the primary, the next predicates are the surrogates. Evaluation order is left-to-right.
The cascaded predicates are applied when the primary predicate evaluates to 'Unknown'. Therefore, the surrogate predicates can provide a resolution to an undetermined predicate.

Parameters:
instance Instance
Exceptions:
TreeModelException 
Returns:
PredicateEvaluation

int kddml.Core.DataMining.ClassificationTrees.CompoundBooleanPredicate.getSize  )  [virtual]
 

Returns the size of the predicate (i.e. the number of compounding predicates).

Returns:
int

Implements kddml.Core.DataMining.ClassificationTrees.CompoundPredicate.

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

Returns a representation of this object as string.

Returns:
String

Implements kddml.Core.DataMining.ClassificationTrees.Predicate.

Element kddml.Core.DataMining.ClassificationTrees.CompoundBooleanPredicate.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