com.rapidminer.operator.learner.tree
Class Benefit

java.lang.Object
  extended by com.rapidminer.operator.learner.tree.Benefit
All Implemented Interfaces:
java.lang.Comparable<Benefit>

public class Benefit
extends java.lang.Object
implements java.lang.Comparable<Benefit>

Encapsulates some information about the benefit of a split.

Author:
Ingo Mierswa

Constructor Summary
Benefit(double benefit, Attribute attribute)
           
Benefit(double benefit, Attribute attribute, double splitValue)
           
 
Method Summary
 int compareTo(Benefit o)
           
 Attribute getAttribute()
           
 double getBenefit()
           
 double getSplitValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Benefit

public Benefit(double benefit,
               Attribute attribute)

Benefit

public Benefit(double benefit,
               Attribute attribute,
               double splitValue)
Method Detail

getAttribute

public Attribute getAttribute()

getSplitValue

public double getSplitValue()

getBenefit

public double getBenefit()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(Benefit o)
Specified by:
compareTo in interface java.lang.Comparable<Benefit>


Copyright © 2001-2009 by Rapid-I