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 ScalarConstraintpublic double getUpperBound()
getUpperBound in interface ScalarConstraintpublic double apply(double parameterToTest)
ScalarConstraintapply in interface ScalarConstraintparameterToTest - The value to which the constraint should be applied.Copyright © 2019. All rights reserved.