edu.duke.cs.banjo.learner.components
Class DeciderGreedy

java.lang.Object
  extended byedu.duke.cs.banjo.learner.components.Decider
      extended byedu.duke.cs.banjo.learner.components.DeciderGreedy
All Implemented Interfaces:
DeciderI

public class DeciderGreedy
extends Decider

Decides whether to keep a proposed change, based on a greedy decision algorithm.

Details:

Change History:
Created on Mar 15, 2004

Author:
Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.

Field Summary
 
Fields inherited from class edu.duke.cs.banjo.learner.components.Decider
betterScoreChangeTypeTracker, comparisonsSinceLastHighScore, consideredChangeTypeTracker, currentScore, minMarkovLag, otherAcceptedChangeTypeTracker, processData, rnd
 
Constructor Summary
DeciderGreedy(BayesNetManagerI _initialBayesNet, Settings _processData, double _initialScore)
           
 
Method Summary
 boolean isChangeAccepted(double newScore, BayesNetChangeI bayesNetChange)
           
 java.lang.StringBuffer provideCollectedStatistics()
          Collects a basic set of decider-related statistics that any subclass can use as default.
 
Methods inherited from class edu.duke.cs.banjo.learner.components.Decider
getComparisonsSinceLastHighScore, getCurrentScore, setCurrentScore, updateProcessData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeciderGreedy

public DeciderGreedy(BayesNetManagerI _initialBayesNet,
                     Settings _processData,
                     double _initialScore)
              throws java.lang.Exception
Method Detail

isChangeAccepted

public boolean isChangeAccepted(double newScore,
                                BayesNetChangeI bayesNetChange)
                         throws java.lang.Exception
Specified by:
isChangeAccepted in interface DeciderI
Specified by:
isChangeAccepted in class Decider
Returns:
Returns whether to keep the newScore based on the bayesNetChange.
Throws:
java.lang.Exception

provideCollectedStatistics

public java.lang.StringBuffer provideCollectedStatistics()
                                                  throws java.lang.Exception
Description copied from class: Decider
Collects a basic set of decider-related statistics that any subclass can use as default.

Specified by:
provideCollectedStatistics in interface DeciderI
Overrides:
provideCollectedStatistics in class Decider
Throws:
java.lang.Exception