|
| CompactificationF (Functor f, double a, double b) |
| Constructor of the class. The parameters "a" and "b" specify original definition interval [a,b]. It must be a < b. More...
|
|
double | scale (double x) const |
| Scale value from the original interval [a,b] into compactified interval [-1,1]. More...
|
|
double | unscale (double t) const |
| Unscale value from the compactified interval [-1,1] into the original interval [a,b]. More...
|
|
double | Jacobian (double t) const |
| Evaluate Jacobian of the transformation. More...
|
|
FType | operator() (double t) const |
| Evaluate the compactified function. More...
|
|
virtual | ~ICompactification () |
|
template<class Functor, typename FType>
class CompactificationF< Functor, FType >
Transform arbitrary function so that its definition range will be \( t \in [-1,1] \), for original interval \( x \in [a,b] \). The following formula is used:
\[ x = \frac{a+b}{2} + t \frac{b-a}{2} \Leftrightarrow t = \frac{x - (a+b)/2}{(b-a)/2} \ . \]