powered by
Sample path from the distribution of an endpoint-conditioned CTMC.
sample_path(a, b, t0, t1, Q, method = "mr", npaths = 1, eigen_vals = NULL, eigen_vecs = NULL, inverse_vecs = NULL, P = NULL)
States at the left and right endpoints of the interval, given as row numbers of the CTMC rate matrix
Times for the left and right endpoints of the interval.
CTMC rate matrix.
Either "mr" corresponding to modified rejection sampling, or "unif" for uniformization.
optional argument for the number of sample paths to simulate.
optional vector of eigen values of Q (assumes all eigen values are real).
optional matrix of eigen vectors of Q.
optional inverse of the eigen vector matrix.
optional transition probability matrix over the interval
sample_path returns either a matrix with a sample path or a list of matrices of sample paths.
# NOT RUN { sample_path(1, 2, 0, 5, matrix(c(-0.49, 0.49, 0.51, -0.51), nrow = 2, byrow = TRUE)) # }
Run the code above in your browser using DataLab