/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/EuropeanOptionWithBoundary.java
basisFunction = new RandomVariableFromDoubleArray( initialStockValue, 1.0) ;
basisFunction = new RandomVariableFromDoubleArray ( exerciseDate, 1.0 ) ;
values.add(boundaryAdjustment); return values; } private RandomVariable[] getRegressionBasisFunctions(final double exerciseDate, final AssetModelMonteCarloSimulationModel model, final RandomVariable weight) throws CalculationException { final ArrayList<RandomVariable> basisFunctions = new ArrayList<>(); RandomVariable basisFunction; <extra_id_0> basisFunctions.add(basisFunction.mult(weight)); basisFunction = model.getAssetValue(exerciseDate, 0); basisFunctions.add(basisFunction.mult(weight)); return basisFunctions.toArray(new RandomVariable[0]); } public class ConstantBarrier implements Barrier {