convert_lna2: Convert an LNA path from the counting process on transition...

View source: R/RcppExports.R

convert_lna2R Documentation

Convert an LNA path from the counting process on transition events to the compartment densities on their natural scale, making the conversion in place for an existing census matrix.

Description

Convert an LNA path from the counting process on transition events to the compartment densities on their natural scale, making the conversion in place for an existing census matrix.

Usage

convert_lna2(path, flow_matrix, init_state, statemat)

Arguments

path

matrix containing the LNA path in terms of the counting processes on transition events

flow_matrix

stoichiometry matrix (the transpose of the flow matrix)

init_state

initial compartment counts on the natural scale

statemat

matrix where the compartment counts should be written

The process can be re-expressed by left-multiplying each row in the path matrix by the stoichiometry matrix: X_t = A'φ(t, N_t).


fintzij/stemr documentation built on March 25, 2022, 12:25 p.m.