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

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

package net.finmath.fouriermethod.calibration;

/**
 * Base interface for scalar parameter constraints.
 *
 * @author Alessandro Gnoatto
 *
 */
public interface ScalarConstraint extends Constraint{

	/**
	 * Forces the parameter to respect a certain condition.
	 *
	 * @param parameterToTest The value to which the constraint should be applied.
	 * @return the parameter after application of the constraint.
	 */
	double apply(double parameterToTest);

	/**
	 * Returns the lower bound, possibly given by Double.NEGATIVE_INFINITY.
	 * @return the lower bound.
	 */
	double getLowerBound();

	/**
	 * Returns the upper bound, possibly given by Double.POSITIVE_INFINITY.
	 * @return the upper bound.
	 */
	double getUpperBound();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy