![]() |
Hex
1.0
Hydrogen-electron collision solver
|
Compactification of a function from finite interval. More...
#include <compact.h>
Public Member Functions | |
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 () |
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} \ . \]
|
inline |
|
inlinevirtual |
Implements ICompactification< FType >.
|
inlinevirtual |
t | Value from the compactified interval [-1,1]. |
Implements ICompactification< FType >.
|
inlinevirtual |
Implements ICompactification< FType >.
|
inlinevirtual |
Implements ICompactification< FType >.