Hex
1.0
Hydrogen-electron collision solver
|
Compactification of a function from (-∞,b] to (-1,1]. More...
#include <compact.h>
Public Member Functions | |
CompactificationL (Functor f, double b=0., bool limit=true, double L=1.0) | |
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 |
Public Member Functions inherited from ICompactification< FType > | |
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 formulas are used:
\[ x = b - L \frac{1+t}{1-t} \Leftrightarrow t = \frac{x - b + L}{x - b + L} \ . \]
Note that in this case the monotonic character is reverse.
|
inline |
Constructor of the class The parameter "b" specifies original definition interval (-∞,b].
|
inlinevirtual |
Implements ICompactification< FType >.
|
inlinevirtual |
Evaluate the compactified function.
t | Value from the compactified interval [-1,1]. |
Implements ICompactification< FType >.
|
inlinevirtual |
Implements ICompactification< FType >.
|
inlinevirtual |
Implements ICompactification< FType >.