gen_arriv_times: Generate arrival times according to a Poisson point process

View source: R/gen_arriv_times.R

gen_arriv_timesR Documentation

Generate arrival times according to a Poisson point process

Description

This function can be used to generate arrival times for a Poisson point process with rate psi up until time t.

Usage

gen_arriv_times(psi, t)

Arguments

psi

rate of the arrival process.

t

time until which arrivals should be generated.

Details

Exponential(\psi) interarrival times.

Value

A vector of arrival times up until time t.

Author(s)

Daniel Gomon

Examples

set.seed(123)
gen_arriv_times(psi = 0.3, t = 5)
gen_arriv_times(psi = 0.3, t = 20)

success documentation built on June 22, 2024, 10:19 a.m.