double min = obs.get(0).getJD() - zeroPoint;
double max = obs.get(obs.size() - 1).getJD()
- zeroPoint;
IExtremaFinder finder = new ApacheCommonsExtremaFinder(
function, goal, min, max, zeroPoint);
finder.execute();
double extremeMag = finder.getExtremeMag();
String strRepr = String.format("JD: %s, Mag: %s",
NumericPrecisionPrefs.formatTime(finder
.getExtremeTime()),
NumericPrecisionPrefs.formatMag(extremeMag));
// Is the extremum within a reasonable range? If not,
// set it to null.