public class BoundConstraint extends Object implements ScalarConstraint
Constructor and Description |
---|
BoundConstraint(double lowerBound,
double upperBound) |
Modifier and Type | Method and Description |
---|---|
double |
apply(double parameterToTest)
Forces the parameter to respect a certain condition.
|
double |
getLowerBound()
Return the lower bound.
|
double |
getUpperBound()
Return the upper bound.
|
public double getLowerBound()
getLowerBound
in interface ScalarConstraint
public double getUpperBound()
getUpperBound
in interface ScalarConstraint
public double apply(double parameterToTest)
ScalarConstraint
apply
in interface ScalarConstraint
parameterToTest
- The value to which the constraint should be applied.Copyright © 2019. All rights reserved.