check_ppp_sample_validity |
Check the validity of a ppp vector. |
compare_ppp_vectors |
Check that two ppp vectors Q-Q agree |
draw |
Generic function for simulating from NHPPPs given the intensity function or the cumulative intensity function. |
draw_cumulative_intensity_inversion |
Simulate from a non homogeneous Poisson Point Process (NHPPP) from (t_min, t_max) (inversion method) |
draw_cumulative_intensity_orderstats |
Simulate from a non homogeneous Poisson Point Process (NHPPP) from (t_min, t_max) (order statistics method) |
draw_intensity |
Simulate from a non homogeneous Poisson Point Process (NHPPP) from (t0, t_max) (thinning method) |
draw_intensity_step |
Simulate from a non homogeneous Poisson Point Process (NHPPP) from (t0, t_max) (thinning method) with piecewise constant_majorizer |
draw_sc_linear |
Special case: Simulate from a non homogeneous Poisson Point Process (NHPPP) from (t_min, t_max) with linear intensity function (inversion method) |
draw_sc_loglinear |
Special case: Simulate from a non homogeneous Poisson Point Process (NHPPP) from (t_min, t_max) with log-linear intensity function (inversion method) |
draw_sc_step |
Simulate a piecewise constant-rate Poisson Point Process over (t_min, t_max] (inversion method) The intervals need not have the same length. |
draw_sc_step_regular |
Sampling from NHPPPs with piecewise constant intensities with same interval lengths (non-vectorized) |
expect_no_error |
Helper functions |
get_step_majorizer |
Piecewise constant (step) majorizer for K-Lipschitz functions over an interval |
inverse_with_uniroot |
Numerically evaluate the inverse of a function at a specific point |
inverse_with_uniroot_sorted |
Numerically evaluate the inverse of a monotonically increasing continuous function from R to R at specific points. |
Lambda_exp_form |
Definite integral of 'l = exp(alpha + beta*t)' at time 't' with 'L(t0) = 0' |
Lambda_inv_exp_form |
Inverse of the definite integral of 'l = exp(alpha + beta*t)' at time 't' |
Lambda_inv_linear_form |
Inverse of the definite integral of 'l = alpha + beta*t' at time 't' |
Lambda_linear_form |
Definite integral of 'l = alpha + beta*t' at time 't' with 'L(t0) = 0' |
mat_cumsum_columns |
Return matrix with column-wise cumulative sum No checks for arguments is done. |
mat_cumsum_columns_with_scalar_ceiling |
Return matrix with column-wise cumulative sum replacing cells larger than 'ceil' with 'NA'. No checks for arguments is done. |
mat_cumsum_columns_with_vector_ceiling |
Return matrix with column-wise cumulative sum replacing cells larger than 'ceil' with 'NA'. No checks for arguments is done. |
ppp_n |
Simulate specific number of points from a homogeneous Poisson Point Process over (t_min, t_max] |
ppp_next_n |
Simulate n events from a homogeneous Poisson Point Process. |
ppp_orderstat |
Simulate a homogeneous Poisson Point Process over (t_min, t_max] (order statistics method) |
ppp_sequential |
Simulate a homogeneous Poisson Point Process over (t_min, t_max] |
read_code |
Read code from text file as string |
rng_stream_rexp |
Exponential random samples from 'rstream' objects |
rng_stream_rpois |
Poisson random samples from 'rstream' objects |
rng_stream_runif |
Uniform random samples from 'rstream' objects |
rng_stream_rztpois |
Zero-truncated Poisson random samples from 'rstream' objects |
simpson_num_integr |
Simpson's method to integrate a univariate function. |
vdraw_sc_step_regular |
Vectorized sampling from NHPPPs with piecewise constant intensities with same interval lengths |
ztdraw_cumulative_intensity |
Simulate from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from (t_min, t_max) (order statistics method) |
ztdraw_intensity |
Simulate 'size' samples from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from (t0, t_max) (thinning method) |
ztdraw_intensity_step |
Simulate from a zero-truncated non homogeneous Poisson Point Process (NHPPP) from (t0, t_max) (thinning method) with piecewise constant_majorizer |
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 |
ztdraw_sc_loglinear |
Simulate from a zero-truncated non homogeneous Poisson Point Process (zt-NHPPP) from (t_min, t_max) with a log-linear intensity function (inversion method) |
ztppp |
Simulate a zero-truncated homogeneous Poisson Point Process over (t_min, t_max] |