Learn R Programming

nhppp (version 0.1.3)

ztdraw_sc_linear: Simulate size samples from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from (t_min, t_max) with linear intensity function

Description

Sample zero-truncated NHPPP times from a linear intensity function using the inversion method, optionally using an rstream generator

Usage

ztdraw_sc_linear(
  alpha = 1,
  beta = 0,
  range_t = c(0, 10),
  rng_stream = NULL,
  atmost1 = FALSE
)

Value

a vector of at least 1 event times

Arguments

alpha

(double) the intercept

beta

(double) the slope

range_t

(vector, double) min and max of the time interval

rng_stream

(rstream) an rstream object

atmost1

(boolean) draw 1 event time

Examples

Run this code
x <- ztdraw_sc_linear(alpha = 0, beta = 0.2)

Run the code above in your browser using DataLab