Class MultivariateFunctionMappingAdapter.LowerUpperBoundMapper
java.lang.Object
org.apache.commons.math3.optimization.direct.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 UnivariateFunctionFunction from unbounded to bounded.private final UnivariateFunctionFunction from bounded to unbounded. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleboundedToUnbounded(double x) Map a value from bounded to unbounded.doubleunboundedToBounded(double y) Map 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) Map a value from unbounded to bounded.- Specified by:
unboundedToBoundedin interfaceMultivariateFunctionMappingAdapter.Mapper- Parameters:
y- unbounded value- Returns:
- bounded value
-
boundedToUnbounded
public double boundedToUnbounded(double x) Map a value from bounded to unbounded.- Specified by:
boundedToUnboundedin interfaceMultivariateFunctionMappingAdapter.Mapper- Parameters:
x- bounded value- Returns:
- unbounded value
-