Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
quetzal::demography::dispersal_kernel::logistic< Distance > Struct Template Reference

#include <quetzal/demography/dispersal_kernel.hpp>

Detailed Description

template<QuantityOf< isq::length > Distance = mp_units::quantity<mp_units::si::metre>>
struct quetzal::demography::dispersal_kernel::logistic< Distance >

Logistic dispersal location kernel (fat-tailed, power-law tail)

Suitable for frequent long-distance dispersal events and weak effect of distance close to the source.

Classes

struct  param_type
 Dispersal location kernel parameter. More...
 

Public Types

using pdf_result_type = quantity< inverse(pow< 2 >(Distance::reference)), typename Distance::rep >
 Probability density function value type.
 

Static Public Member Functions

static constexpr pdf_result_type pdf (Distance r, param_type const &p)
 Probability density function.
 
static constexpr Distance mean_dispersal_distance (param_type const &p)
 Mean dispersal distance.
 

Member Function Documentation

◆ mean_dispersal_distance()

template<QuantityOf< isq::length > Distance = mp_units::quantity<mp_units::si::metre>>
static constexpr Distance quetzal::demography::dispersal_kernel::logistic< Distance >::mean_dispersal_distance ( param_type const &  p)
inlinestaticconstexpr

Mean dispersal distance.

Parameters
pParameters of the distribution
Returns
The value of the expression \( a~\frac{\Gamma(\frac{3}{b})~\Gamma(1-\frac{3}{b})}{\Gamma(\frac{2}{b})~\Gamma(1-\frac{2}{b})} \)

◆ pdf()

template<QuantityOf< isq::length > Distance = mp_units::quantity<mp_units::si::metre>>
static constexpr pdf_result_type quetzal::demography::dispersal_kernel::logistic< Distance >::pdf ( Distance  r,
param_type const &  p 
)
inlinestaticconstexpr

Probability density function.

Parameters
rThe distance radius from the source to the target
pParameters of the distribution
Returns
The value of the expression \( \frac{b}{(2\pi a^2 \Gamma(\frac{2}{b}) \Gamma(1-\frac{2}{b}))} (1 + \frac{r^b}{a^b} )^{-1} \)

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