Class MultivariateFunctionMappingAdapter.UpperBoundMapper
java.lang.Object
org.apache.commons.math3.optimization.direct.MultivariateFunctionMappingAdapter.UpperBoundMapper
- All Implemented Interfaces:
MultivariateFunctionMappingAdapter.Mapper
- Enclosing class:
MultivariateFunctionMappingAdapter
private static class MultivariateFunctionMappingAdapter.UpperBoundMapper
extends Object
implements MultivariateFunctionMappingAdapter.Mapper
Local class for upper bounds mapping.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
boundedToUnbounded
(double x) Map a value from bounded to unbounded.double
unboundedToBounded
(double y) Map a value from unbounded to bounded.
-
Field Details
-
upper
private final double upperUpper bound.
-
-
Constructor Details
-
UpperBoundMapper
UpperBoundMapper(double upper) Simple constructor.- Parameters:
upper
- upper bound
-
-
Method Details
-
unboundedToBounded
public double unboundedToBounded(double y) Map a value from unbounded to bounded.- Specified by:
unboundedToBounded
in interfaceMultivariateFunctionMappingAdapter.Mapper
- Parameters:
y
- unbounded value- Returns:
- bounded value
-
boundedToUnbounded
public double boundedToUnbounded(double x) Map a value from bounded to unbounded.- Specified by:
boundedToUnbounded
in interfaceMultivariateFunctionMappingAdapter.Mapper
- Parameters:
x
- bounded value- Returns:
- unbounded value
-