rBTFinv4: Sample the period it took for n leaf to emerge.

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

rBTFinv4 Generate a random draw from the distribution of leaf emergence knowing the ti.

Usage

1
rBTFinv4(EI_model, I, a, b, n)

Arguments

EI_model

A given integer characterising the type pf distribution for the latent period.

  1. Cyclic distribution using the LER (leaf emergence rate) derived by R Allen http://www.publish.csiro.au/ar/pdf/ar9780535:

    \frac{dL}{dt}=0.056cos(t-15) + 0.062

  2. Gamma distribution with given rate and shape parameters: rgamma

  3. Expoential distribution with given rate: rexp, the default.

I

A vector of time at which the period it took for n leaf to emerge is computed.

a

The baseline LER in the absence of seasonality.

b

The amplitude of the seasonality.

n

The number of leaf to emerge.

Value

It returns a random period of time n leaf will emerge given E.

Examples

1
rBTFinv4(1,c(0,10,100),0.062,0.85,3)

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