Class MultivariateFunctionMappingAdapter.LowerUpperBoundMapper
java.lang.Object
org.apache.commons.math3.optim.nonlinear.scalar.MultivariateFunctionMappingAdapter.LowerUpperBoundMapper
- All Implemented Interfaces:
MultivariateFunctionMappingAdapter.Mapper
- Enclosing class:
MultivariateFunctionMappingAdapter
private static class MultivariateFunctionMappingAdapter.LowerUpperBoundMapper
extends Object
implements MultivariateFunctionMappingAdapter.Mapper
Local class for lower and bounds mapping.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UnivariateFunction
Function from unbounded to bounded.private final UnivariateFunction
Function from bounded to unbounded. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
boundedToUnbounded
(double x) Maps a value from bounded to unbounded.double
unboundedToBounded
(double y) Maps a value from unbounded to bounded.
-
Field Details
-
boundingFunction
Function from unbounded to bounded. -
unboundingFunction
Function from bounded to unbounded.
-
-
Constructor Details
-
LowerUpperBoundMapper
LowerUpperBoundMapper(double lower, double upper) Simple constructor.- Parameters:
lower
- lower boundupper
- upper bound
-
-
Method Details
-
unboundedToBounded
public double unboundedToBounded(double y) Maps a value from unbounded to bounded.- Specified by:
unboundedToBounded
in interfaceMultivariateFunctionMappingAdapter.Mapper
- Parameters:
y
- Unbounded value.- Returns:
- the bounded value.
-
boundedToUnbounded
public double boundedToUnbounded(double x) Maps a value from bounded to unbounded.- Specified by:
boundedToUnbounded
in interfaceMultivariateFunctionMappingAdapter.Mapper
- Parameters:
x
- Bounded value.- Returns:
- the unbounded value.
-