Learn R Programming

nhppp (version 0.1.3)

ppp_next_n: Simulate n events from a homogeneous Poisson Point Process.

Description

Simulate n events from a homogeneous Poisson Point Process.

Usage

ppp_next_n(n = 1, rate = 1, t_min = 0, rng_stream = NULL)

Value

a vector with event times t (starting from t_min)

Arguments

n

scalar number of samples

rate

scalar instantaneous rate

t_min

scalar for the starting time value

rng_stream

an rstream object

Examples

Run this code
x <- ppp_next_n(n = 10, rate = 1, t_min = 0)

Run the code above in your browser using DataLab