use of org.ojalgo.series.CalendarDateSeries in project ojAlgo-finance by optimatika.
the class FinanceUtils method makeDatePriceSeries.
public static CalendarDateSeries<BigDecimal> makeDatePriceSeries(final double[] prices, final Date startDate, final CalendarDateUnit resolution) {
final CalendarDateSeries<BigDecimal> retVal = new CalendarDateSeries<>(resolution);
FinanceUtils.copyValues(retVal, new CalendarDate(startDate), prices);
return retVal;
}
Aggregations