/src/main/java/net/finmath/time/TimeDiscretizationFromArray.java
}) ) ; }return initial + n * deltaT;
return initial + n * deltaT; } } ) ) ;
this(Arrays.stream(times), tickSize); } public TimeDiscretizationFromArray(final double initial, final int numberOfTimeSteps, final double deltaT) { this(IntStream.range(0, numberOfTimeSteps + 1).mapToDouble(new IntToDoubleFunction() { @Override public double applyAsDouble(final int n) { <extra_id_0> } public TimeDiscretizationFromArray(final double initial, final double last, final double deltaT, final ShortPeriodLocation shortPeriodLocation) { this(getEquidistantStreamWithStub(initial, last, deltaT, shortPeriodLocation)); } 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;