SpeedPredictor(){
  times=new double[VECTOR_LENGTH];
  WtWindowManager wm=WtWindowManager.getInstance();
  prediction=MathHelper.parseDoubleDefault(wm.getProperty(SPEED_PROPERTY,Double.toString(INITIAL_PREDICTED_SPEED)),INITIAL_PREDICTED_SPEED);
  jitter=MathHelper.parseDouble(wm.getProperty(JITTER_PROPERTY,"0.0"));
  double average=TURN_LENGTH / prediction;
  for (int i=0; i < VECTOR_LENGTH; i++) {
    times[i]=average;
  }
}

SpeedPredictor ( ) { times = new double [ VECTOR_LENGTH ] ; WtWindowManager wm = WtWindowManager . getInstance ( ) ; prediction = MathHelper . parseDoubleDefault ( wm . getProperty ( SPEED_PROPERTY , Double . toString ( INITIAL_PREDICTED_SPEED ) ) , INITIAL_PREDICTED_SPEED ) ; jitter = MathHelper . parseDouble ( wm . getProperty ( JITTER_PROPERTY , "0.0" ) ) ; double average = TURN_LENGTH / prediction ; for ( int i = 0 ; i < VECTOR_LENGTH ; i ++ ) { times [ i ] = average ; } }
create a new speedpredictor with default initial prediction and history corresponding to that .
