Class NegativityConstraint

java.lang.Object
net.finmath.fouriermethod.calibration.BoundConstraint
net.finmath.fouriermethod.calibration.NegativityConstraint
All Implemented Interfaces:
Constraint, ScalarConstraint

public class NegativityConstraint extends BoundConstraint
Negativity constraint for calibration parameters.
Author:
Alessandro Gnoatto
  • Constructor Details

    • NegativityConstraint

      public NegativityConstraint()
  • Method Details

    • apply

      public double apply(double parameterToTest)
      Description copied from interface: ScalarConstraint
      Forces the parameter to respect a certain condition.
      Specified by:
      apply in interface ScalarConstraint
      Overrides:
      apply in class BoundConstraint
      Parameters:
      parameterToTest - The value to which the constraint should be applied.
      Returns:
      the parameter after application of the constraint.