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. More... | |
template<typename realT > | |
realT | mx::math::func::expModGaussianMean (realT mu, realT lambda) |
The Mean of the Exponentially Modified Gaussian. More... | |
template<typename realT > | |
realT | mx::math::func::expModGaussianVariance (realT sigma, realT lambda) |
The Variance of the Exponentially Modified Gaussian. More... | |
template<typename realT > | |
realT | mx::math::func::expModGaussianMode (realT mu, realT sigma, realT lambda) |
The Mode of the Exponentially Modified Gaussian. More... | |
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 54 of file expModGaussian.hpp.
References mx::astro::constants::sigma().
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 74 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 123 of file expModGaussian.hpp.
References mx::math::func::expModGaussianMean(), mx::math::func::expModGaussianVariance(), and mx::astro::constants::sigma().
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 92 of file expModGaussian.hpp.
References mx::astro::constants::sigma().
Referenced by mx::math::func::expModGaussianMode().