/src/main/java/net/finmath/montecarlo/RandomVariableFromFloatArray.java
final float[] arrayOfFloat = new float[arrayOfDouble.length];final float[] newRealizations = new float[realizations.length];
final float[] newRealizations = new float[realizations.length];
public RandomVariable sub(final double value) { if(isDeterministic()) { final double newValueIfNonStochastic = valueIfNonStochastic - value; return new RandomVariableFromFloatArray(time, newValueIfNonStochastic); } else { <extra_id_0> for(int i=0; i<newRealizations.length; i++) { newRealizations[i] = realizations[i] - (float)value; } return new RandomVariableFromFloatArray(time, newRealizations); } }