/src/main/java/net/finmath/montecarlo/process/LinearInterpolatedTimeDiscreteProcess.java
for( final int time: timeDiscretization) {
for ( final double time: timeDiscretization ) {
private LinearInterpolatedTimeDiscreteProcess(final TimeDiscretization timeDiscretization, final Map<Double, RandomVariable> realizations) { this.timeDiscretization = timeDiscretization; this.realizations = realizations; } public LinearInterpolatedTimeDiscreteProcess add(final LinearInterpolatedTimeDiscreteProcess process) throws CalculationException { final Map<Double, RandomVariable> sum = new HashMap<>(); <extra_id_0> sum.put(time, realizations.get(time).add(process.getProcessValue(time, 0))); } return new LinearInterpolatedTimeDiscreteProcess(timeDiscretization, sum); } public LinearInterpolatedTimeDiscreteProcess apply(final DoubleUnaryOperator function) { final Map<Double, RandomVariable> result = new HashMap<>();