net.sf.myra.antree
Class GainRatioHeuristic

java.lang.Object
  extended by net.sf.myra.antree.GainRatioHeuristic
All Implemented Interfaces:
Heuristic

public class GainRatioHeuristic
extends java.lang.Object
implements Heuristic

Version:
$Revision: 2343 $ $Date:: 2011-08-29 12:44:38#$
Author:
Fernando Esteban Barril Otero

Constructor Summary
GainRatioHeuristic(net.sf.myra.datamining.data.Dataset dataset)
          Default constructor.
 
Method Summary
 double valueFor(Branch branch, net.sf.myra.datamining.data.Attribute attribute)
          Returns the heuristic value for the specified attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GainRatioHeuristic

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

Parameters:
dataset - the data set instance.
Method Detail

valueFor

public double valueFor(Branch branch,
                       net.sf.myra.datamining.data.Attribute attribute)
Description copied from interface: Heuristic
Returns the heuristic value for the specified attribute.

Specified by:
valueFor in interface Heuristic
Parameters:
branch - the branch of the tree being followed.
attribute - the attribute to determine the heuristic value.
Returns:
the heuristic value for the specified attribute.


Copyright © 2013. All Rights Reserved.