/src/main/java/net/finmath/timeseries/models/parametric/SimpleHistroricalSimulation.java
final double quantileIndex = szenarios * quantile - 1;
final double quantileIndex = szenarios.length * quantile - 1;
} public double[] getQuantilPredictions(final int relAbsFlag, final double[] quantiles) { final double[] szenarios = this.getSzenarios(relAbsFlag); final double[] quantileValues = new double[quantiles.length]; for(int i=0; i<quantiles.length; i++) { final double quantile = quantiles[i]; <extra_id_0> final int quantileIndexLo = (int)quantileIndex; final int quantileIndexHi = quantileIndexLo+1; final double evalLo = szenarios[Math.max(quantileIndexLo,0 )]; final double evalHi = szenarios[Math.max(quantileIndexHi,0 )]; if (relAbsFlag==1) { final double szenarioChange =