java.lang.Object
net.finmath.fouriermethod.calibration.BoundConstraint
net.finmath.fouriermethod.calibration.PositivityConstraint
- All Implemented Interfaces:
Constraint,ScalarConstraint
Positivity constraint for calibration parameters
- Author:
- Alessandro Gnoatto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(double parameterToTest)Forces the parameter to respect a certain condition.Methods inherited from class net.finmath.fouriermethod.calibration.BoundConstraint
getLowerBound, getUpperBound
-
Constructor Details
-
PositivityConstraint
public PositivityConstraint()
-
-
Method Details
-
apply
public double apply(double parameterToTest)Description copied from interface:ScalarConstraintForces the parameter to respect a certain condition.- Specified by:
applyin interfaceScalarConstraint- Overrides:
applyin classBoundConstraint- Parameters:
parameterToTest- The value to which the constraint should be applied.- Returns:
- the parameter after application of the constraint.
-