|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Utilities for working with the Gamma Distribution.
Functions | |
| template<typename realT > | |
| realT | mx::math::func::gammaDistributionDenom (realT k, realT q) |
| The denominator of the Gamma Distribution. | |
| template<typename realT > | |
| realT | mx::math::func::gammaDistribution (realT x, realT x0, realT k, realT q, realT denom) |
| The general shifted Gamma Distribution at a point using an arbitrary peak scaling parameter. | |
| template<typename realT > | |
| realT | mx::math::func::gammaDistribution (realT x, realT x0, realT k, realT q) |
| The general shifted Gamma Distribution at a point. | |
| template<typename realT > | |
| realT | mx::math::func::gammaDistributionMean (realT x0, realT k, realT theta) |
| The mean of the Gamma Distribution. | |
| template<typename realT > | |
| realT | mx::math::func::gammaDistributionMode (realT x0, realT k, realT theta) |
| The mode of the Gamma Distribution. | |
| template<typename realT > | |
| realT | mx::math::func::gammaDistributionVariance (realT k, realT theta) |
| The variance of the Gamma Distribution. | |
| realT mx::math::func::gammaDistribution | ( | realT | x, |
| realT | x0, | ||
| realT | k, | ||
| realT | q | ||
| ) |
The general shifted Gamma Distribution at a point.
Calculates the value of the Gamma Distribution at a location specified by x.
| realT | a real floating point type |
| [in] | x | the location at which to calculate the distribution |
| [in] | x0 | the location parameter |
| [in] | k | shape parameter |
| [in] | q | the scale parameter |
Definition at line 108 of file gammaDistribution.hpp.
References mx::math::six_fifths().
| realT mx::math::func::gammaDistribution | ( | realT | x, |
| realT | x0, | ||
| realT | k, | ||
| realT | q, | ||
| realT | denom | ||
| ) |
The general shifted Gamma Distribution at a point using an arbitrary peak scaling parameter.
Calculates the value of the Gamma Distribution at a location specified by x.
| realT | a real floating point type |
| [in] | x | the location at which to calculate the distribution |
| [in] | x0 | the location parameter |
| [in] | k | shape parameter |
| [in] | q | the scale parameter |
| [in] | denom | the denominator, or 1/peak-scale. |
Definition at line 80 of file gammaDistribution.hpp.
References mx::math::six_fifths().
| realT mx::math::func::gammaDistributionDenom | ( | realT | k, |
| realT | q | ||
| ) |
The denominator of the Gamma Distribution.
Can be used to avoid repeated calculations when the parameters are constant
| realT | a real floating point type |
| [in] | k | shape parameter |
| [in] | q | the scale parameter |
Definition at line 51 of file gammaDistribution.hpp.
References mx::math::six_fifths().
| realT mx::math::func::gammaDistributionMean | ( | realT | x0, |
| realT | k, | ||
| realT | theta | ||
| ) |
The mean of the Gamma Distribution.
Calculates the mean of the Gamma Distribution for the given parameters.
| realT | a real floating point type |
| [in] | x0 | the location parameter |
| [in] | k | shape parameter |
| [in] | theta | the scale parameter |
Definition at line 128 of file gammaDistribution.hpp.
| realT mx::math::func::gammaDistributionMode | ( | realT | x0, |
| realT | k, | ||
| realT | theta | ||
| ) |
The mode of the Gamma Distribution.
Calculates the mode of the Gamma Distribution for the given parameters.
| realT | a real floating point type |
| [in] | x0 | the location parameter |
| [in] | k | shape parameter |
| [in] | theta | the scale parameter |
Definition at line 146 of file gammaDistribution.hpp.
| realT mx::math::func::gammaDistributionVariance | ( | realT | k, |
| realT | theta | ||
| ) |
The variance of the Gamma Distribution.
Calculates the variance of the Gamma Distribution for the given parameters.
| realT | a real floating point type |
| [in] | k | shape parameter |
| [in] | theta | the scale parameter |
Definition at line 167 of file gammaDistribution.hpp.