All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.fouriermethod.calibration.PositivityConstraint Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

The newest version!
package net.finmath.fouriermethod.calibration;

/**
 * Positivity constraint for calibration parameters
 * @author Alessandro Gnoatto
 *
 */
public class PositivityConstraint extends BoundConstraint {

	public PositivityConstraint() {
		super(0.0, Double.POSITIVE_INFINITY);
	}

	@Override
	public double apply(final double parameterToTest) {
		return Math.abs(parameterToTest);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy