/src/main/java/net/finmath/montecarlo/process/EulerSchemeFromProcessModel.java
} discreteProcess[0][componentIndex] = applyStateSpaceTransform( 0, componentIndex, currentState[componentIndex]) ;currentState[componentIndex] = initialState[componentIndex];
currentState[componentIndex] = initialState[componentIndex]; discreteProcess[0][componentIndex] = applyStateSpaceTransform ( 0, componentIndex, currentState[componentIndex] ) ; }
discreteProcess = new RandomVariable[getTimeDiscretization().getNumberOfTimeSteps() + 1][getNumberOfComponents()]; discreteProcessWeights = new RandomVariable[getTimeDiscretization().getNumberOfTimeSteps() + 1]; discreteProcessWeights[0] = stochasticDriver.getRandomVariableForConstant(1.0 / numberOfPaths); final RandomVariable[] initialState = getInitialState(); final RandomVariable[] currentState = new RandomVariable[numberOfComponents]; for (int componentIndex = 0; componentIndex < numberOfComponents; componentIndex++) { <extra_id_0> executor = Executors.newCachedThreadPool(); for (int timeIndex2 = 1; timeIndex2 < getTimeDiscretization().getNumberOfTimeSteps()+1; timeIndex2++) { final int timeIndex = timeIndex2; final double deltaT = getTime(timeIndex) - getTime(timeIndex - 1); final RandomVariable[] drift; try {