Hex
1.0
Hydrogen-electron collision solver
|
Compactification of a function from [a,+∞) to [-1,1). More...
#include <compact.h>
Public Member Functions | |
CompactificationR (Functor f, double a=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 = a + L \frac{1+t}{1-t} \Leftrightarrow t = \frac{x - a - L}{x - a - L} \ . \]
|
inline |
Constructor of the class The parameter "a" specifies original definition interval \( [a,+\infty) \).
|
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 >.