/src/main/java/net/finmath/montecarlo/process/EulerSchemeFromProcessModel.java
} return discreteProcessWeights[timeIndex];
return discreteProcessWeights[timeIndex]; }
public RandomVariable getMonteCarloWeights(final int timeIndex) { synchronized(this) { if (discreteProcessWeights == null || discreteProcessWeights.length == 0) { doPrecalculateProcess(); } } <extra_id_0> private void doPrecalculateProcess() { if (discreteProcess != null && discreteProcess.length != 0) { return; } final int numberOfPaths = this.getNumberOfPaths(); final int numberOfFactors = this.getNumberOfFactors();