Dispersal kernel for gamma distribution class utilized by RadialKernel and DeterministicKernel.
More...
#include <gamma_kernel.hpp>
|
| GammaKernel (double a, double t) |
|
template<class Generator > |
double | random (Generator &generator) |
| Returns random value from gamma distribution Used by RadialKernel to determine location of spread. More...
|
|
double | pdf (double x) |
| Gamma probability density function Used by DeterministicKernel to determine location of spread. More...
|
|
double | cdf (double x) |
| Gamma cumulative distribution function used by gamma icdf. More...
|
|
double | icdf (double x) |
| Gamma inverse cumulative distribution (quantile) function Used by DeterministicKernel to determine maximum distance of spread There is no known closed-form solution for Gamma icdf, used Newton's method References include: Abramowitz, M. More...
|
|
Dispersal kernel for gamma distribution class utilized by RadialKernel and DeterministicKernel.
Definition at line 33 of file gamma_kernel.hpp.
◆ GammaKernel()
pops::GammaKernel::GammaKernel |
( |
double |
a, |
|
|
double |
t |
|
) |
| |
|
inline |
◆ cdf()
double pops::GammaKernel::cdf |
( |
double |
x | ) |
|
|
inline |
Gamma cumulative distribution function used by gamma icdf.
- Parameters
-
- Returns
- probability of x
Definition at line 82 of file gamma_kernel.hpp.
◆ icdf()
double pops::GammaKernel::icdf |
( |
double |
x | ) |
|
|
inline |
Gamma inverse cumulative distribution (quantile) function Used by DeterministicKernel to determine maximum distance of spread There is no known closed-form solution for Gamma icdf, used Newton's method References include: Abramowitz, M.
and Stegun, I.A. (1964) Handbook of Mathematical Functions, Dover, New York, section 26.1. Evans, M., Hastings, N., and Peacock, B. (1993) Statistical Distributions, 2nd ed., Wiley.
- Parameters
-
x | proportion of the distribution |
- Returns
- value in distribution that is less than or equal to probability (x)
Definition at line 104 of file gamma_kernel.hpp.
◆ pdf()
double pops::GammaKernel::pdf |
( |
double |
x | ) |
|
|
inline |
Gamma probability density function Used by DeterministicKernel to determine location of spread.
- Parameters
-
x | point within same space of distribution |
- Returns
- relative likelihood that a random variable would equal x
Definition at line 68 of file gamma_kernel.hpp.
◆ random()
template<class Generator >
double pops::GammaKernel::random |
( |
Generator & |
generator | ) |
|
|
inline |
Returns random value from gamma distribution Used by RadialKernel to determine location of spread.
- Parameters
-
generator | uniform random number generator |
- Returns
- value from gamma distribution
Definition at line 57 of file gamma_kernel.hpp.
◆ alpha
double pops::GammaKernel::alpha |
|
protected |
◆ gamma_distribution
std::gamma_distribution<double> pops::GammaKernel::gamma_distribution |
|
protected |
◆ theta
double pops::GammaKernel::theta |
|
protected |
The documentation for this class was generated from the following file: