ztdraw_intensity_line: Simulate 'size' samples from a zero-truncated non homogeneous...

View source: R/ztdraw_intensity_line.R

ztdraw_intensity_lineR Documentation

Simulate size samples from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from (t0, t_max) (thinning method)

Description

Sample zero-truncated NHPPP intensity times using the thinning method

Usage

ztdraw_intensity_line(
  lambda,
  majorizer_intercept,
  majorizer_slope,
  t_min,
  t_max,
  majorizer_is_loglinear = FALSE,
  atmost1 = FALSE
)

Arguments

lambda

(function) the instantaneous rate of the NHPPP.

majorizer_intercept

(double) the intercept (alpha) of the loglinear majorizer function.

majorizer_slope

(double) the slope (‘beta’) of the loglinear majorizer function.

t_min

(double) the lower bound of the time interval.

t_max

(double) the upper bound of the time interval.

majorizer_is_loglinear

(boolean) if TRUE the majorizer is loglinear exp(alpha + beta * t)

atmost1

boolean, draw at most 1 event time

Value

a vector of at least 1 event times


nhppp documentation built on Oct. 30, 2024, 9:28 a.m.