mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
Special Functions

Various special functions.

Topics

 The Airy Pattern
 Bessel Functions
 The Exponentially Modified Gaussian Distribution
 The Gamma Function
 The Gamma Distribution
 The Gaussian Function
 The Logistic Function
 Machine Precision
 The Moffat Function
 The Weibull Distribution

Functions

template<typename T>
mx::math::func::factorial (T x)
 The factorial function.
template<typename T>
mx::math::func::legendre_p (int n, T x)
 Legendre Polynomials.
template<typename T>
mx::math::func::sign (T x)
 The sign function.

Function Documentation

◆ factorial()

template<typename T>
T mx::math::func::factorial ( T x)

The factorial function.

Parameters
[in]xthe argument

Definition at line 48 of file factorial.hpp.

Referenced by mx::sigproc::zernikeRCoeffs().

◆ legendre_p()

template<typename T>
T mx::math::func::legendre_p ( int n,
T x )

Legendre Polynomials.

See https://en.wikipedia.org/wiki/Legendre_polynomials and https://www.boost.org/doc/libs/1_75_0/libs/math/doc/html/math_toolkit/sf_poly/legendre.html

Returns
the value of the n-th Legendre polynomial at x.
Parameters
[in]nthe order of the Legendre polynomial, n>=0.
[in]xthe argument, -1 <= x <= 1.

Definition at line 52 of file legendre.hpp.

Referenced by orthoNormalLegendre().

◆ sign()

template<typename T>
T mx::math::func::sign ( T x)

The sign function.

Parameters
[in]xthe argument

Definition at line 29 of file sign.hpp.

Referenced by mx::sigproc::noll_nm().