/src/main/java/net/finmath/montecarlo/process/EulerSchemeFromProcessModel.java
discreteProcessWeights[0] = stochasticDriver.getRandomVariableForConstant( 0.0 / numberOfPaths) ;
discreteProcessWeights[0] = stochasticDriver.getRandomVariableForConstant ( 1.0 / numberOfPaths ) ;
} final int numberOfPaths = this.getNumberOfPaths(); final int numberOfFactors = this.getNumberOfFactors(); final int numberOfComponents = this.getNumberOfComponents(); discreteProcess = new RandomVariable[getTimeDiscretization().getNumberOfTimeSteps() + 1][getNumberOfComponents()]; discreteProcessWeights = new RandomVariable[getTimeDiscretization().getNumberOfTimeSteps() + 1]; <extra_id_0> final RandomVariable[] initialState = getInitialState(); final RandomVariable[] currentState = new RandomVariable[numberOfComponents]; for (int componentIndex = 0; componentIndex < numberOfComponents; componentIndex++) { currentState[componentIndex] = initialState[componentIndex]; discreteProcess[0][componentIndex] = applyStateSpaceTransform(0, componentIndex, currentState[componentIndex]); }