Samp_dis: Sample the distance at which the inoculum will travel.

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Samp_dis Generate a random draw from the distribution specified for the latent period.

Usage

1
Samp_dis(kern_model, ru, alpha1, alpha2)

Arguments

kern_model

A given integer characterising the type of distribution for the kernel for both short and long range interaction.

  1. exponential-exponential

  2. cauchy-cauchy

  3. exponential-cauchy

  4. cauchy

  5. exponential the default

alpha1

Dispersal scale parameter for the local spread kernel.

alpha2

Dispersal scale parameter for the long range interaction.

ru.

The proportion of not infected hosts in the cell containing the osurce.

Value

It returns a random distance the inoculum will travel to.

Examples

1
Samp_dis (1,0.5, 0.2, 0.3)

holaanna/contactsimulator documentation built on Dec. 2, 2019, 2:39 a.m.