Learn R Programming

nhppp (version 1.0.2)

make_lambda_matrix: Helper function for the vectorized versions of sampling functions. Takes the usual ways that lambda_mat and Lambda_mat are specified and returns lambda_mat.

Description

Helper function for the vectorized versions of sampling functions. Takes the usual ways that lambda_mat and Lambda_mat are specified and returns lambda_mat.

Usage

make_lambda_matrix(
  lambda_mat = NULL,
  Lambda_mat = NULL,
  interval_duration = NULL
)

Value

A matrix (r x 2), row-expanded if needed

Arguments

lambda_mat

a matrix of intensities or missing

Lambda_mat

a matrix of cumulative intensities or missing

interval_duration

a vector with the same number of elements as the rows of Lambda_mat