pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
Go to the documentation of this file.
36 #ifndef POPS_KERNEL_TYPES_HPP
37 #define POPS_KERNEL_TYPES_HPP
78 if (text ==
"cauchy" || text ==
"Cauchy")
80 else if (text ==
"exponential" || text ==
"Exponential")
82 else if (text ==
"uniform" || text ==
"Uniform")
85 text ==
"deterministic neighbor" || text ==
"deterministic-neighbor"
86 || text ==
"Deterministic-neighbor" || text ==
"Deterministic-Neighbor"
87 || text ==
"Deterministic neighbor" || text ==
"Deterministic Neighbor")
90 text ==
"power law" || text ==
"power-law" || text ==
"Power-law"
91 || text ==
"Power-Law" || text ==
"Power Law" || text ==
"Power law")
94 text ==
"hyperbolic secant" || text ==
"hyperbolic-secant"
95 || text ==
"Hyperbolic-secant" || text ==
"Hyperbolic-Secant"
96 || text ==
"Hyperbolic secant" || text ==
"Hyperbolic Secant")
98 else if (text ==
"gamma" || text ==
"Gamma")
101 text ==
"exponential power" || text ==
"exponential-power"
102 || text ==
"Exponential-power" || text ==
"Exponential-Power"
103 || text ==
"Exponential power" || text ==
"Exponential Power")
105 else if (text ==
"weibull" || text ==
"Weibull")
107 else if (text ==
"normal" || text ==
"Normal")
110 text ==
"log normal" || text ==
"log-normal" || text ==
"Log-normal"
111 || text ==
"Log-Normal" || text ==
"Log normal" || text ==
"Log Normal")
113 else if (text ==
"logistic" || text ==
"Logistic")
115 else if (text ==
"network" || text ==
"Network")
117 else if (text ==
"none" || text ==
"None" || text ==
"NONE" || text.empty())
120 throw std::invalid_argument(
121 "kernel_type_from_string: Invalid"
123 + text +
"' provided");
136 #endif // POPS_KERNEL_TYPES_HPP
@ HyperbolicSecant
Hyperbolic secant dispersal kernel.
@ Gamma
Gamma dispersal kernel.
DispersalKernelType kernel_type_from_string(const std::string &text)
Get a corresponding enum value for a string which is a kernel name.
@ Logistic
Logistic dispersal kernel.
@ Exponential
Exponential dispersal kernel.
@ Uniform
Random uniform dispersal kernel.
@ Weibull
Weibull dispersal kernel.
@ ExponentialPower
Exponential power dispersal kernel.
@ DeterministicNeighbor
Deterministic immediate neighbor dispersal kernel.
@ Normal
Normal dispersal kernel.
DispersalKernelType
Type of dispersal kernel.
@ Cauchy
Cauchy dispersal kernel.
@ PowerLaw
Power law dispersal kernel.
@ LogNormal
Log-normal dispersal kernel.
@ None
No dispersal kernel (no spread)