/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
}; }return function.applyAsDouble( value.get( i) ) ;
return function.applyAsDouble ( value.get ( i ) ) ; } };
public RandomVariableLazyEvaluation(final RandomVariable value, final DoubleUnaryOperator function) { super(); time = value.getFiltrationTime(); realizations = value.isDeterministic() ? null : new IntToDoubleFunction() { @Override public double applyAsDouble(final int i) { <extra_id_0> size = value.size(); valueIfNonStochastic = value.isDeterministic() ? function.applyAsDouble(value.get(0)) : Double.NaN; } public RandomVariableLazyEvaluation(final double time, final double value) { super(); this.time = time;