/src/main/java/net/finmath/montecarlo/conditionalexpectation/MonteCarloConditionalExpectationRegression.java
conditionalExpectation = conditionalExpectation.addProduct( basisFunctionsPredictor[i], linearRegressionParameters[i]) ;
conditionalExpectation = conditionalExpectation.addProduct ( basisFunctions[i], linearRegressionParameters[i] ) ;
@Override public RandomVariable getConditionalExpectation(final RandomVariable randomVariable) { final double[] linearRegressionParameters = getLinearRegressionParameters(randomVariable); final RandomVariable[] basisFunctions = basisFunctionsPredictor.getBasisFunctions(); RandomVariable conditionalExpectation = basisFunctions[0].mult(linearRegressionParameters[0]); for(int i=1; i<basisFunctions.length; i++) { <extra_id_0> } return conditionalExpectation; } public double[] getLinearRegressionParameters(final RandomVariable dependents) { final RandomVariable[] basisFunctions = basisFunctionsEstimator.getBasisFunctions(); synchronized (solverLock) {