public void update(Double actualFutureChange,Prediction prediction){
  Outcome outcome=Outcome.getOutcome(prediction,actualFutureChange);
switch (outcome) {
case CORRECT:
    totalPercentPredicted+=Math.abs(actualFutureChange);
  break;
case INCORRECT:
totalPercentMispredicted+=Math.abs(actualFutureChange);
break;
}
}

public void update ( Double actualFutureChange , Prediction prediction ) { Outcome outcome = Outcome . getOutcome ( prediction , actualFutureChange ) ; switch ( outcome ) { case CORRECT : totalPercentPredicted += Math . abs ( actualFutureChange ) ; break ; case INCORRECT : totalPercentMispredicted += Math . abs ( actualFutureChange ) ; break ; } }
updates stats for setstats . name
