Class MultivariateFunctionMappingAdapter.NoBoundsMapper
java.lang.Object
org.apache.commons.math3.optim.nonlinear.scalar.MultivariateFunctionMappingAdapter.NoBoundsMapper
- All Implemented Interfaces:
MultivariateFunctionMappingAdapter.Mapper
- Enclosing class:
MultivariateFunctionMappingAdapter
private static class MultivariateFunctionMappingAdapter.NoBoundsMapper
extends Object
implements MultivariateFunctionMappingAdapter.Mapper
Local class for no bounds mapping.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleboundedToUnbounded(double x) Maps a value from bounded to unbounded.doubleunboundedToBounded(double y) Maps a value from unbounded to bounded.
-
Constructor Details
-
NoBoundsMapper
private NoBoundsMapper()
-
-
Method Details
-
unboundedToBounded
public double unboundedToBounded(double y) Maps a value from unbounded to bounded.- Specified by:
unboundedToBoundedin 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:
boundedToUnboundedin interfaceMultivariateFunctionMappingAdapter.Mapper- Parameters:
x- Bounded value.- Returns:
- the unbounded value.
-