![]() |
Quetzal-CoaTL
The Coalescence Template Library
|
#include <quetzal/demography/demographic_policy.hpp>
Policy class to specialize the quetzal::demography::History class for expansion of populations with very low densities.
Simulate the demographic history by sampling the next location of each migrant in a proability distribution.
Public Types | |
using | value_type = unsigned int |
Static Public Member Functions | |
template<typename T , typename F > | |
static auto | make_distance_based_dispersal (std::vector< T > const &coords, F f) |
Build a dispersal kernel usable with class History specialized for individual-based policy. | |
|
inlinestatic |
Build a dispersal kernel usable with class History specialized for individual-based policy.
coords | a vector of geographic points |
f | a functor giving the migration probability of an individual between two points The signature should be equivalent to double f(T const& x, T const& Y) |