draw_intensity_line: Simulate from a non homogeneous Poisson Point Process (NHPPP)...

View source: R/draw_intensity_line.R

draw_intensity_lineR Documentation

Simulate from a non homogeneous Poisson Point Process (NHPPP) from (t0, t_max) (thinning method)

Description

Sample NHPPP times using the thinning method

Usage

draw_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 event times (t_); if no events realize, a vector of length 0


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