Class DiscreteStump

java.lang.Object
  extended by Stump
      extended by DiscreteStump
All Implemented Interfaces:
java.io.Serializable
public class DiscreteStump
extends Stump

Class DiscreteStump

Version:
1.0
Author:
Fabien Torre
See Also:
Serialized Form

Constructor Summary
DiscreteStump()
           
DiscreteStump(ProblemDescription pb, ExamplesSet trainingExamples, int aId, int vId, int ifTrue, int ifFalse)
           
 
Method Summary
 int classifyExample(Example ex)
           
 boolean equals(java.lang.Object o)
           
 Stump reverseStump()
           
 java.lang.String toString()
          Transforms a discrete stump in String.
 
Methods inherited from class Stump
addToStumpWeight, cleanStump, getStumpError, getStumpWeight, normalizeStumpWeight, setStumpError, setStumpWeight, updateExamplesWeights
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscreteStump

public DiscreteStump()

DiscreteStump

public DiscreteStump(ProblemDescription pb,
                     ExamplesSet trainingExamples,
                     int aId,
                     int vId,
                     int ifTrue,
                     int ifFalse)
Method Detail

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class Stump

classifyExample

public int classifyExample(Example ex)
Specified by:
classifyExample in class Stump

reverseStump

public Stump reverseStump()
Specified by:
reverseStump in class Stump

toString

public java.lang.String toString()
Transforms a discrete stump in String.

Overrides:
toString in class java.lang.Object