simulatorCpp: simulator C++

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Eco-evolutionary simulator in C++.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
simulatorCpp(
  Topo,
  NCI,
  grid = 10L,
  Nt = 50L,
  timestep = 30L,
  sigmaGtopo = 1,
  sigmaZtopo = 1,
  sigmaGnci = 2.651,
  sigmaZnci = 2.651,
  Pdeath = 0.01325548,
  Ns = 4L,
  Rpollination = 1L,
  Rdispersion = 1L,
  determinist = TRUE
)

Arguments

Topo

matrix. Topography matrix generated with 'sinusoidalTopogrpahy', 'squareDiamondTopography', 'paracouTopography'.

NCI

matrix. NCI matrix generated with 'generateNCI'.

grid

int. Number of cell per side of the matrix.

Nt

int. Number of time steps.

timestep

int. Time-step length in years.

sigmaGtopo

double. Variance of genetic values with topography.

sigmaZtopo

double. Plasticity of phenotypes with topography.

sigmaGnci

double. Variance of genetic values with NCI.

sigmaZnci

double. Plasticity of phenotypes with NCI.

Pdeath

double. Background mortality probability.

Ns

int. Number of seedlings per cell.

Rpollination

int. Pollination radius in cells (father to mother).

Rdispersion

int. Dispersal radius in cells (mother to seedling).

determinist

bool. Deterministic or probabilistic viability.

Value

List of 6 Topography, Atopo, Ztopo, NCI, Anci, Znci.

Examples

1
2
simulatorCpp(Topo = sinusoidalTopography(grid = 10, Elim = 5, amplitude = 0.01), 
             NCI = generateNCI(grid = 10, Nt = 50))

sylvainschmitt/ecoevosimulator documentation built on Nov. 19, 2020, 8:04 a.m.