pops-core
0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
|
Go to the documentation of this file.
16 #ifndef POPS_NEIGHBOR_KERNEL_HPP
17 #define POPS_NEIGHBOR_KERNEL_HPP
61 template<
typename Generator>
62 std::tuple<int, int>
operator()(Generator& generator,
int row,
int col)
95 throw std::invalid_argument(
96 "NeighborDispersalKernel: Unsupported Direction");
98 return std::make_tuple(row, col);
113 #endif // POPS_NEIGHBOR_KERNEL_HPP
DeterministicNeighborDispersalKernel(Direction dispersal_direction)
Creates kernel based on the spread direction.
std::tuple< int, int > operator()(Generator &generator, int row, int col)
Generates a new position for the spread.
@ DeterministicNeighbor
Deterministic immediate neighbor dispersal kernel.
DispersalKernelType
Type of dispersal kernel.
#define UNUSED(expr)
Macro to mark unused variables (including parameters) and silence the warning while documenting that ...
static bool supports_kernel(const DispersalKernelType type)
Returns true if the kernel class support a given kernel type.
Dispersal kernel for deterministic spread to a next cell.
Kernel types enum and helper functions.
Direction
Spread direction.