public <T extends Number>double[] predict(Collection<T> values,int numPredictions){
  assert (numPredictions >= 1);
  if (values.isEmpty()) {
    return emptyPredictions(numPredictions);
  }
  return doPredict(values,numPredictions);
}

public < T extends Number > double [ ] predict ( Collection < T > values , int numPredictions ) { assert ( numPredictions >= 1 ) ; if ( values . isEmpty ( ) ) { return emptyPredictions ( numPredictions ) ; } return doPredict ( values , numPredictions ) ; }
predicts the next ` n ` values in the series .
