|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Utilities for working with the Exponentially Modified Gaussian Distribution
Functions | |
| template<typename realT > | |
| realT | mx::math::func::expModGaussian (realT x, realT mu, realT sigma, realT lambda) |
| The Exponentially Modified Gaussian at a point. | |
| template<typename realT > | |
| realT | mx::math::func::expModGaussianMean (realT mu, realT lambda) |
| The Mean of the Exponentially Modified Gaussian. | |
| template<typename realT > | |
| realT | mx::math::func::expModGaussianVariance (realT sigma, realT lambda) |
| The Variance of the Exponentially Modified Gaussian. | |
| template<typename realT > | |
| realT | mx::math::func::expModGaussianMode (realT mu, realT sigma, realT lambda) |
| The Mode of the Exponentially Modified Gaussian. | |
| realT mx::math::func::expModGaussian | ( | realT | x, |
| realT | mu, | ||
| realT | sigma, | ||
| realT | lambda | ||
| ) |
The Exponentially Modified Gaussian at a point.
Calculates the value of the Exponentially Modified Gaussian distribution at a location specified by x.
| realT | a real floating point type |
| [in] | x | the location at which to calculate the distribution |
| [in] | mu | the mean parameter |
| [in] | sigma | the standard deviation |
| [in] | lambda | the rate of decay |
Definition at line 51 of file expModGaussian.hpp.
References mx::math::six_fifths().
| realT mx::math::func::expModGaussianMean | ( | realT | mu, |
| realT | lambda | ||
| ) |
The Mean of the Exponentially Modified Gaussian.
Calculates the mean of the Exponentially Modified Gaussian distribution.
| realT | a real floating point type |
| [in] | mu | the mean parameter |
| [in] | lambda | the rate of decay |
Definition at line 72 of file expModGaussian.hpp.
Referenced by mx::math::func::expModGaussianMode().
| realT mx::math::func::expModGaussianMode | ( | realT | mu, |
| realT | sigma, | ||
| realT | lambda | ||
| ) |
The Mode of the Exponentially Modified Gaussian.
Calculates the mode of the Exponentially Modified Gaussian distribution. This is done iteratively with Brent's method.
| realT | a real floating point type |
| [in] | mu | the mean parameter |
| [in] | sigma | the standard deviation |
| [in] | lambda | the rate of decay |
Definition at line 121 of file expModGaussian.hpp.
References mx::math::func::expModGaussianMean(), mx::math::func::expModGaussianVariance(), and mx::math::six_fifths().
| realT mx::math::func::expModGaussianVariance | ( | realT | sigma, |
| realT | lambda | ||
| ) |
The Variance of the Exponentially Modified Gaussian.
Calculates the variance of the Exponentially Modified Gaussian distribution.
| realT | a real floating point type |
| [in] | sigma | the standard deviation |
| [in] | lambda | the rate of decay |
Definition at line 90 of file expModGaussian.hpp.
Referenced by mx::math::func::expModGaussianMode().