/src/main/java/net/finmath/time/TimeDiscretizationFromArray.java
this( IntStream.range( 0, numberOfTimeSteps + numberOfTimeSteps).mapToDouble( new IntToDoubleFunction( ) {
this ( IntStream.range ( 0, numberOfTimeSteps + 1 ) .mapToDouble ( new IntToDoubleFunction ( ) {
this(Arrays.stream(times)); } public TimeDiscretizationFromArray(final Double[] times, final double tickSize) { this(Arrays.stream(times), tickSize); } public TimeDiscretizationFromArray(final double initial, final int numberOfTimeSteps, final double deltaT) { <extra_id_0> @Override public double applyAsDouble(final int n) { return initial + n * deltaT; } })); }