Learn R Programming

success (version 1.0.1)

gen_arriv_times: 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)

Value

A vector of arrival times up until time t.

Arguments

psi

rate of the arrival process.

t

time until which arrivals should be generated.

Author

Daniel Gomon

Details

Exponential(\(\psi\)) interarrival times.

Examples

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

Run the code above in your browser using DataLab