/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
final double[] newRealizations = new double[Math.max( size( ) , factor1.size( ) ) ];final double[] newRealizations = new double[realizations.length];
final double[] newRealizations = new double[realizations.length];
public RandomVariable vid(final double value) { if(isDeterministic()) { final double newValueIfNonStochastic = value / valueIfNonStochastic; return new RandomVariableFromDoubleArray(time, newValueIfNonStochastic); } else { <extra_id_0> for(int i=0; i<newRealizations.length; i++) { newRealizations[i] = value / realizations[i]; } return new RandomVariableFromDoubleArray(time, newRealizations); } }