EVolve.visualization
Class DefaultPredictor

java.lang.Object
  |
  +--EVolve.visualization.Predictor
        |
        +--EVolve.visualization.DefaultPredictor
All Implemented Interfaces:
java.lang.Cloneable

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(long target)
          Receives a new target.
 void newTarget2(long target)
           
 
Methods inherited from class EVolve.visualization.Predictor
clone
 
Methods inherited from class java.lang.Object
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(long 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(long target)
Specified by:
newTarget2 in class Predictor