org.apache.commons.math3.optim.nonlinear.scalar
Class MultivariateFunctionMappingAdapter.UpperBoundMapper

java.lang.Object
  extended by 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
private  double upper
          Upper bound.
 
Constructor Summary
MultivariateFunctionMappingAdapter.UpperBoundMapper(double upper)
          Simple constructor.
 
Method Summary
 double boundedToUnbounded(double x)
          Maps a value from bounded to unbounded.
 double unboundedToBounded(double y)
          Maps a value from unbounded to bounded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

upper

private final double upper
Upper bound.

Constructor Detail

MultivariateFunctionMappingAdapter.UpperBoundMapper

public MultivariateFunctionMappingAdapter.UpperBoundMapper(double upper)
Simple constructor.

Parameters:
upper - upper bound
Method Detail

unboundedToBounded

public double unboundedToBounded(double y)
Maps a value from unbounded to bounded.

Specified by:
unboundedToBounded in interface MultivariateFunctionMappingAdapter.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 interface MultivariateFunctionMappingAdapter.Mapper
Parameters:
x - Bounded value.
Returns:
the unbounded value.


Copyright (c) 2003-2013 Apache Software Foundation