public double maxValueAfter(int i, List<double> data) { // no constraints. // We choose as max a value very unlikely to be exceeded. return 3.0; }