bd_sample_trunc_exp: Sample from a truncated exponential distribution

Description Usage Arguments Value Author(s)

View source: R/bd_sample_trunc_exp.R

Description

Make N samples from a truncated exponential distribution with the density function r0exp(r0y). The rate r0 can be positive (growth) or negative (decay). The density function is normalized to integrate to 1 on the interval ymin to ymax.

Usage

1
bd_sample_trunc_exp(N, r0, ymin, ymax)

Arguments

N

The number of samples to make

r0

The rate parameter

ymin

The lower limit for truncation

ymax

The upper limit for truncation

Value

A vector of N samples between ymin and ymax

Author(s)

Michael Holton Price MichaelHoltonPrice@gmail.com


MichaelHoltonPrice/BayDem documentation built on Sept. 12, 2019, 9:26 p.m.