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