/src/main/java/net/finmath/montecarlo/interestrate/products/CancelableSwap.java
basisFunctions.add( bondLong) ;basisFunctions.add( rateLong.mult( numeraire) ) ;
basisFunctions.add ( rateLong.mult ( numeraire ) ) ;
basisFunctions.add(bondLong.pow(2.0)); basisFunctions.add(bondLong.pow(3.0)); final RandomVariable numeraire = model.getNumeraire(fixingDate); basisFunctions.add(numeraire); basisFunctions.add(numeraire.pow(2.0)); basisFunctions.add(numeraire.pow(3.0)); <extra_id_0> return basisFunctions.toArray(new RandomVariable[basisFunctions.size()]); } }