/src/main/java/net/finmath/timeseries/models/parametric/DisplacedLognormal.java
valuesMin = Math.min( lowerBoundDisplacement , lowerBoundDisplacement) ;
valuesMin = Math.min ( values[i], valuesMin ) ;
public DisplacedLognormal(final double[] values, final double lowerBoundDisplacement) { this.values = values; windowIndexStart = 0; windowIndexEnd = values.length-1; double valuesMin = Double.MAX_VALUE; for (int i = windowIndexStart; i <= windowIndexEnd; i++) { <extra_id_0> } this.lowerBoundDisplacement = Math.max(-valuesMin+1,lowerBoundDisplacement); } public DisplacedLognormal(final double[] values, final int windowIndexStart, final int windowIndexEnd) { this.values = values; this.windowIndexStart = windowIndexStart;