Class MultivariateFunctionMappingAdapter.UpperBoundMapper
- java.lang.Object
-
- org.apache.commons.math3.optim.nonlinear.scalar.MultivariateFunctionMappingAdapter.UpperBoundMapper
-
- All Implemented Interfaces:
MultivariateFunctionMappingAdapter.Mapper
- Enclosing class:
- MultivariateFunctionMappingAdapter
private static class MultivariateFunctionMappingAdapter.UpperBoundMapper extends java.lang.Object implements MultivariateFunctionMappingAdapter.Mapper
Local class for upper bounds mapping.
-
-
Field Summary
Fields Modifier and Type Field Description private double
upper
Upper bound.
-
Constructor Summary
Constructors Constructor Description UpperBoundMapper(double upper)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
boundedToUnbounded(double x)
Maps a value from bounded to unbounded.double
unboundedToBounded(double y)
Maps a value from unbounded to bounded.
-
-
-
Method Detail
-
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.
-
-