pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
Go to the documentation of this file.
16 #ifndef POPS_POWER_LAW_KERNEL_HPP
17 #define POPS_POWER_LAW_KERNEL_HPP
46 throw std::invalid_argument(
"xmin cannot equal 0.0");
56 template<
class Generator>
73 throw std::invalid_argument(
"x cannot be less than 0.0");
79 throw std::invalid_argument(
"x must be greater than or equal to xmin");
92 if (x <= 0 || x >= 1) {
93 throw std::invalid_argument(
"icdf: x must be between 0 and 1.0");
101 #endif // POPS_POWER_LAW_KERNEL_HPP
std::uniform_real_distribution< double > distribution
double icdf(double x)
Power law inverse cumulative distribution (quantile) function Used by DeterministicKernel to determin...
Dispersal kernel for power law distribution class utilized by RadialKernel and DeterministicKernel.
double random(Generator &generator)
Returns random value from power law distribution Used by RadialKernel to determine location of spread...
double pdf(double x)
Power law probability density function Used by DeterministicKernel to determine location of spread.
PowerLawKernel(double a, double xm)
Kernel types enum and helper functions.