de.fu_berlin.ties.classify.winnow
Class WinnowDistribution

java.lang.Object
  extended byde.fu_berlin.ties.classify.PredictionDistribution
      extended byde.fu_berlin.ties.classify.winnow.WinnowDistribution

public class WinnowDistribution
extends PredictionDistribution

A distribution over the classes predicted by a Winnow classifier. Extends the superclass by also storing the threshold and raw threshold used by Winnow for this instance.

Version:
$Revision: 1.6 $, $Date: 2004/04/06 17:23:22 $, $Author: siefkes $
Author:
Christian Siefkes

Constructor Summary
WinnowDistribution(float theta, float rawTheta)
          Creates a new instance.
 
Method Summary
 float getRawThreshold()
          Returns the raw threshold used by the Winnow classifier for this instance.
 float getThreshold()
          Returns the threshold used by the Winnow classifier for this instance.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class de.fu_berlin.ties.classify.PredictionDistribution
add, best, iterator, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WinnowDistribution

public WinnowDistribution(float theta,
                          float rawTheta)
Creates a new instance.

Parameters:
theta - the threshold used by Winnow
rawTheta - the raw threshold used by Winnow
Method Detail

getRawThreshold

public float getRawThreshold()
Returns the raw threshold used by the Winnow classifier for this instance.

Returns:
the value of the attribute

getThreshold

public float getThreshold()
Returns the threshold used by the Winnow classifier for this instance.

Returns:
the value of the attribute

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class PredictionDistribution
Returns:
a textual representation


Copyright © 2003-2004 Christian Siefkes. All Rights Reserved.