/src/main/java/net/finmath/time/TimeDiscretizationFromArray.java
this ( getEquidistantStreamWithStub ( initial, last, deltaT, shortPeriodLocation ) ) ;
public double applyAsDouble(final int n) { return initial + n * deltaT; } })); } public TimeDiscretizationFromArray(final double initial, final double last, final double deltaT, final ShortPeriodLocation shortPeriodLocation) { <extra_id_0> } private static DoubleStream getEquidistantStreamWithStub(final double initial, final double last, final double deltaT, final ShortPeriodLocation shortPeriodLocation) { final int numberOfTimeStepsPlusOne = (int) Math.ceil((last - initial) / deltaT) + 1; if (shortPeriodLocation == ShortPeriodLocation.SHORT_PERIOD_AT_END) { return IntStream.range(0, numberOfTimeStepsPlusOne).mapToDouble(new IntToDoubleFunction() { @Override