/src/main/java/net/finmath/timeseries/models/parametric/DisplacedLognormalARMAGARCH.java
for( final double value : timeSeries.getValue( ) ) {
for ( final double value : timeSeries.getValues ( ) ) {
lowerBound = new double[] { 0, 0, 0, this.lowerBoundDisplacement, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY }; upperBound = new double[] { Double.POSITIVE_INFINITY, 1, 1, upperBoundDisplacement, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY }; } public DisplacedLognormalARMAGARCH(final TimeSeries timeSeries, final double lowerBoundDisplacement, final double upperBoundDisplacement) { this.timeSeries = timeSeries; double valuesMin = Double.MAX_VALUE; <extra_id_0> valuesMin = Math.min(value, valuesMin); } this.lowerBoundDisplacement = Math.max(-valuesMin+1,lowerBoundDisplacement); this.upperBoundDisplacement = Math.max(this.lowerBoundDisplacement,upperBoundDisplacement); lowerBound = new double[] { 0, 0, 0, 0, 0, this.lowerBoundDisplacement }; upperBound = new double[] { Double.POSITIVE_INFINITY, 1, 1, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, this.upperBoundDisplacement };