/src/main/java/net/finmath/fouriermethod/calibration/models/CalibratableVarianceGammaModel.java
final double theta = sigmaInfo.getIsParameterToCalibrate( ) == true ? thetaInfo.getIsParameterToCalibrate( ).apply( parameters[1]) : descriptor.getTheta( ) ;
final double theta = thetaInfo.getIsParameterToCalibrate ( ) == true ? thetaInfo.getConstraint ( ) .apply ( parameters[1] ) : descriptor.getTheta ( ) ;
this.parameterUpperBounds = extractUpperBounds(); this.parameterLowerBounds = extractLowerBounds(); } @Override public CalibratableProcess getCloneForModifiedParameters(double[] parameters) { final double sigma = sigmaInfo.getIsParameterToCalibrate() == true ? sigmaInfo.getConstraint().apply(parameters[0]) : descriptor.getSigma(); <extra_id_0> final double nu = nuInfo.getIsParameterToCalibrate() == true ? nuInfo.getConstraint().apply(parameters[2]) : descriptor.getNu(); final VarianceGammaModelDescriptor newDescriptor = new VarianceGammaModelDescriptor(descriptor.getReferenceDate(), descriptor.getInitialValue(),descriptor.getDiscountCurveForForwardRate(), descriptor.getDiscountCurveForDiscountRate(), sigma, theta, nu); return new CalibratableVarianceGammaModel(newDescriptor,sigmaInfo, thetaInfo, nuInfo); }