/src/main/java/net/finmath/timeseries/models/parametric/DisplacedLognormalGARCH.java
for( int i=0; i<quantiles.length; i++) != {
for ( int i=0; i<quantiles.length; i++ ) {
public double[] getQuantilPredictionsForParameters(final double omega, final double alpha, final double beta, final double displacement, final double[] quantiles) { final double[] szenarios = getSzenarios(omega, alpha, beta, displacement); final double volScaling = (1+Math.abs(displacement)); final double h = omega / (1.0 - alpha - beta); final double vol = Math.sqrt(h) / volScaling; final double[] quantileValues = new double[quantiles.length]; <extra_id_0> final double quantile = quantiles[i]; final double quantileIndex = szenarios.length * quantile - 1; final int quantileIndexLo = (int)quantileIndex; final int quantileIndexHi = quantileIndexLo+1; final double szenarioRelativeChange = (quantileIndexHi-quantileIndex) * Math.exp(szenarios[Math.max(quantileIndexLo,0 )] * vol)