Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
quetzal::demography::demographic_policy::individual_based Class Reference

#include <quetzal/demography/demographic_policy.hpp>

Detailed Description

Policy class to specialize the quetzal::demography::History class for expansion of populations with very low densities.

Remarks
Meant to be used through its helper function individual_based::make_distance_based_dispersal()

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.
 

Member Function Documentation

◆ make_distance_based_dispersal()

template<typename T , typename F >
static auto quetzal::demography::demographic_policy::individual_based::make_distance_based_dispersal ( std::vector< T > const &  coords,
f 
)
inlinestatic

Build a dispersal kernel usable with class History specialized for individual-based policy.

Parameters
coordsa vector of geographic points
fa 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)
Returns
A dispersal kernel that is cheap to copy

The documentation for this class was generated from the following file: