Class MappedExpander.DoubleLogarithmicMap
java.lang.Object
com.github.gbenroscience.math.numericalmethods.MappedExpander.DoubleLogarithmicMap
- All Implemented Interfaces:
MappedExpander.DomainMap
- Enclosing class:
MappedExpander
public static class MappedExpander.DoubleLogarithmicMap
extends Object
implements MappedExpander.DomainMap
A DomainMap that clusters nodes tightly at BOTH the lower bound (a)
and the upper bound (b). Uses a Hyperbolic Tangent transformation.
- Author:
- GBEMIRO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublederivativeFactor(double u) doubledx_du(double u) doubletoChebyshev(double x) doubletoPhysical(double u)
-
Constructor Details
-
DoubleLogarithmicMap
public DoubleLogarithmicMap(double a, double b, double s) - Parameters:
s- Sensitivity. For a tanh map, a value between 3.0 and 5.0 is ideal. s = 4.0 creates extreme clustering at the boundaries.
-
-
Method Details
-
toPhysical
public double toPhysical(double u) - Specified by:
toPhysicalin interfaceMappedExpander.DomainMap
-
toChebyshev
public double toChebyshev(double x) - Specified by:
toChebyshevin interfaceMappedExpander.DomainMap
-
dx_du
public double dx_du(double u) - Specified by:
dx_duin interfaceMappedExpander.DomainMap
-
derivativeFactor
public double derivativeFactor(double u) - Specified by:
derivativeFactorin interfaceMappedExpander.DomainMap
-