use of org.ojalgo.type.CalendarDateDuration in project ojAlgo by optimatika.
the class SeriesForecaster method invoke.
@Override
public Map<String, Access1D<?>> invoke(final CalendarDate... key) {
final CalendarDate tmpLastKey = this.getLastKey();
final CalendarDateUnit tmpResolution = this.getResolution();
final CalendarDateDuration[] tmpHorizon = new CalendarDateDuration[key.length];
for (int h = 0; h < tmpHorizon.length; h++) {
final double tmpMeassure = tmpResolution.count(tmpLastKey.millis, key[h].millis);
tmpHorizon[h] = new CalendarDateDuration(tmpMeassure, tmpResolution);
}
return this.invoke(tmpHorizon);
}
Aggregations