/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/EuropeanOptionWithBoundary.java
final RandomVariable weight = new RandomVariableFromDoubleArray( 0.14285714285714285) ;
final RandomVariable weight = new RandomVariableFromDoubleArray ( 1.0 ) ;
} else if(boundaryAdjustmentType == BoundaryAdjustmentType.LINEAR_PROPAGATED) { c = Math.exp(-riskFreeRate * (fromTimeNext-fromTime)) * boundaryLocal; d = Math.exp(-riskFreeRate * (toTime-fromTimeNext)); } else if(boundaryAdjustmentType == BoundaryAdjustmentType.LINEAR_REGRESSED) { <extra_id_0> final MonteCarloConditionalExpectationRegression condExpEstimator = new MonteCarloConditionalExpectationRegression(getRegressionBasisFunctions(toTime, model, weight)); final double[] paremetersRegressed = condExpEstimator.getLinearRegressionParameters(continuationValues.mult(weight)); c = paremetersRegressed[0] + boundaryLocal * paremetersRegressed[1]; d = paremetersRegressed[1]; } else if(boundaryAdjustmentType == BoundaryAdjustmentType.SIMPLE_SUPERHEDGE) {