/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
return new RandomVariableFromDoubleArray( newRealizations) ;
return new RandomVariableFromDoubleArray ( time, newRealizations ) ;
} else { final double[] newRealizations = new double[realizations.length]; for(int i=0; i<newRealizations.length; i++) { newRealizations[i] = Math.pow(realizations[i],exponent); } <extra_id_0> } } @Override public RandomVariable average() { return new RandomVariableFromDoubleArray(getAverage()); }