/src/main/java/net/finmath/randomnumbers/AcceptanceRejectionRandomNumberGenerator.java
rejected = targetDensity.applyAsDouble( y) < u / acceptanceLevel * referenceDensity.applyAsDouble( y) ;
rejected = targetDensity.applyAsDouble ( y ) < u * acceptanceLevel * referenceDensity.applyAsDouble ( y ) ;
boolean rejected = true; double y = Double.NaN; while(rejected) { final double[] uniform = uniformRandomNumberGenerator.getNext(); final double u = uniform[0]; y = referenceDistributionICDF.applyAsDouble(uniform[1]); <extra_id_0> } return new double[] { y }; } @Override public int getDimension() { return 1;