Dispersal kernel for power law distribution class utilized by RadialKernel and DeterministicKernel.
More...
#include <power_law_kernel.hpp>
|
| PowerLawKernel (double a, double xm) |
|
template<class Generator > |
double | random (Generator &generator) |
| Returns random value from power law distribution Used by RadialKernel to determine location of spread. More...
|
|
double | pdf (double x) |
| Power law probability density function Used by DeterministicKernel to determine location of spread. More...
|
|
double | icdf (double x) |
| Power law inverse cumulative distribution (quantile) function Used by DeterministicKernel to determine maximum distance of spread. More...
|
|
Dispersal kernel for power law distribution class utilized by RadialKernel and DeterministicKernel.
Definition at line 31 of file power_law_kernel.hpp.
◆ PowerLawKernel()
pops::PowerLawKernel::PowerLawKernel |
( |
double |
a, |
|
|
double |
xm |
|
) |
| |
|
inline |
◆ icdf()
double pops::PowerLawKernel::icdf |
( |
double |
x | ) |
|
|
inline |
Power law inverse cumulative distribution (quantile) function Used by DeterministicKernel to determine maximum distance of spread.
- Parameters
-
x | proportion of the distribution |
- Returns
- value in distribution that is less than or equal to probability (x)
Definition at line 90 of file power_law_kernel.hpp.
◆ pdf()
double pops::PowerLawKernel::pdf |
( |
double |
x | ) |
|
|
inline |
Power law 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
- Note
- only works with alpha < 1 so center square in matrix is always zero
Definition at line 70 of file power_law_kernel.hpp.
◆ random()
template<class Generator >
double pops::PowerLawKernel::random |
( |
Generator & |
generator | ) |
|
|
inline |
Returns random value from power law distribution Used by RadialKernel to determine location of spread.
- Parameters
-
generator | uniform random number generator |
- Returns
- value from power law distribution
Definition at line 57 of file power_law_kernel.hpp.
◆ alpha
double pops::PowerLawKernel::alpha |
|
protected |
◆ distribution
std::uniform_real_distribution<double> pops::PowerLawKernel::distribution |
|
protected |
◆ xmin
double pops::PowerLawKernel::xmin |
|
protected |
The documentation for this class was generated from the following file: