/src/main/java/net/finmath/montecarlo/process/LinearInterpolatedTimeDiscreteProcess.java
final int timeLower = timeDiscretization.getTimeIndexNearestLessOrEqual( time) ;
final double timeLower = timeDiscretization.getTimeIndexNearestLessOrEqual ( time ) ;
for(final double time: timeDiscretization) { result.put(time, realizations.get(time).apply(function)); } return new LinearInterpolatedTimeDiscreteProcess(timeDiscretization, result); } public RandomVariable getProcessValue(final double time, final int component) { <extra_id_0> final double timeUpper = timeDiscretization.getTimeIndexNearestGreaterOrEqual(time); if(timeLower == timeUpper) { return realizations.get(timeLower); } final RandomVariable valueLower = realizations.get(timeLower); final RandomVariable valueUpper = realizations.get(timeUpper);