private static class MultivariateFunctionMappingAdapter.UpperBoundMapper extends java.lang.Object implements MultivariateFunctionMappingAdapter.Mapper
Modifier and Type | Field and Description |
---|---|
private double |
upper
Upper bound.
|
Constructor and Description |
---|
UpperBoundMapper(double upper)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
boundedToUnbounded(double x)
Maps a value from bounded to unbounded.
|
double |
unboundedToBounded(double y)
Maps a value from unbounded to bounded.
|
public UpperBoundMapper(double upper)
upper
- upper boundpublic double unboundedToBounded(double y)
unboundedToBounded
in interface MultivariateFunctionMappingAdapter.Mapper
y
- Unbounded value.public double boundedToUnbounded(double x)
boundedToUnbounded
in interface MultivariateFunctionMappingAdapter.Mapper
x
- Bounded value.