/src/main/java/net/finmath/montecarlo/conditionalexpectation/MonteCarloConditionalExpectationRegression.java
this.basisFunctionsEstimator =  new RegressionBasisFunctionsGiven( getNonZeroBasisFunctions( basisFunctions) ) ) ;
this.basisFunctionsEstimator = new RegressionBasisFunctionsGiven ( getNonZeroBasisFunctions ( basisFunctionsEstimator ) ) ;
this(); basisFunctionsEstimator = new RegressionBasisFunctionsGiven(getNonZeroBasisFunctions(basisFunctions)); basisFunctionsPredictor = basisFunctionsEstimator; } public MonteCarloConditionalExpectationRegression(final RandomVariable[] basisFunctionsEstimator, final RandomVariable[] basisFunctionsPredictor) { this(); <extra_id_0> this.basisFunctionsPredictor = new RegressionBasisFunctionsGiven(getNonZeroBasisFunctions(basisFunctionsPredictor)); } @Override public RandomVariable getConditionalExpectation(final RandomVariable randomVariable) { final double[] linearRegressionParameters = getLinearRegressionParameters(randomVariable); final RandomVariable[] basisFunctions = basisFunctionsPredictor.getBasisFunctions();