net.sf.myra.hantminer
Class RuleEvaluator

java.lang.Object
  extended by net.sf.myra.hantminer.RuleEvaluator
Direct Known Subclasses:
FmeasureEvaluator, hFmeasureEvaluator, HybridEvaluator

public abstract class RuleEvaluator
extends java.lang.Object

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Field Summary
protected  net.sf.myra.datamining.data.Dataset dataset
          The dataset reference.
 
Constructor Summary
RuleEvaluator(net.sf.myra.datamining.data.Dataset dataset)
          Default constructor.
 
Method Summary
abstract  net.sf.myra.framework.Cost evaluate(HybridRule rule)
          Returns the cost associated with the evaluation of the specified hybrid rule.
protected  boolean isNumber(double value)
          Tests if the specified value is a number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataset

protected net.sf.myra.datamining.data.Dataset dataset
The dataset reference.

Constructor Detail

RuleEvaluator

public RuleEvaluator(net.sf.myra.datamining.data.Dataset dataset)
Default constructor.

Parameters:
dataset -
Method Detail

isNumber

protected boolean isNumber(double value)
Tests if the specified value is a number.

Parameters:
value - the value to be tested.
Returns:
true if the value is a number; false otherwise.

evaluate

public abstract net.sf.myra.framework.Cost evaluate(HybridRule rule)
Returns the cost associated with the evaluation of the specified hybrid rule.

Parameters:
rule - the hybrid rule to be evaluated.
Returns:
the cost associated with the evaluation of the specified hybrid rule.


Copyright © 2013. All Rights Reserved.