EVolve.visualization
Class DefaultPredictor

java.lang.Object
  |
  +--EVolve.visualization.Predictor
        |
        +--EVolve.visualization.DefaultPredictor

public class DefaultPredictor
extends Predictor

Default predictor, predicts according to the last value.


Constructor Summary
DefaultPredictor()
          Creates a default predictor.
 
Method Summary
 boolean isCorrect()
          Tells if the prediction is correct.
 void newTarget(int target)
          Receives a new target.
 void newTarget2(int target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPredictor

public DefaultPredictor()
Creates a default predictor.

Method Detail

newTarget

public void newTarget(int target)
Description copied from class: Predictor
Receives a new target.

Specified by:
newTarget in class Predictor
Parameters:
target - the new target

isCorrect

public boolean isCorrect()
Description copied from class: Predictor
Tells if the prediction is correct.

Specified by:
isCorrect in class Predictor
Returns:
true if the prediction is correct

newTarget2

public void newTarget2(int target)
Specified by:
newTarget2 in class Predictor