net.finmath.fouriermethod.calibration.ScalarConstraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
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();
}