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. More... | |
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. More... | |
template<typename realT > | |
realT | mx::math::func::gammaDistribution (realT x, realT x0, realT k, realT q) |
The general shifted Gamma Distribution at a point. More... | |
template<typename realT > | |
realT | mx::math::func::gammaDistributionMean (realT x0, realT k, realT theta) |
The mean of the Gamma Distribution. More... | |
template<typename realT > | |
realT | mx::math::func::gammaDistributionMode (realT x0, realT k, realT theta) |
The mode of the Gamma Distribution. More... | |
template<typename realT > | |
realT | mx::math::func::gammaDistributionVariance (realT k, realT theta) |
The variance of the Gamma Distribution. More... | |
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 106 of file gammaDistribution.hpp.
References mx::astro::constants::k().
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 79 of file gammaDistribution.hpp.
References mx::astro::constants::k().
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::astro::constants::k().
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 126 of file gammaDistribution.hpp.
References mx::astro::constants::k().
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 144 of file gammaDistribution.hpp.
References mx::astro::constants::k().
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 164 of file gammaDistribution.hpp.
References mx::astro::constants::k().