Description Usage Arguments Value Examples
View source: R/drawUniMMPPIntensity.R
Take a mmpp object and draw its intensity accordingly
1 2 3 4 5 6 7 8 | drawUniMMPPIntensity(
mmpp,
simulation,
add = FALSE,
color = 1,
fit = FALSE,
int_title = "Intensity Plot of MMPP"
)
|
mmpp |
a mmpp object including its transition probability matrix, lambda0, delta, and c. |
simulation |
the simulated Markov-modulated Poisson Process(MMPP) |
add |
logical; if TRUE add to an already existing plot; if NA start a new plot taking the defaults for the limits and log-scaling of the x-axis from the previous plot. Taken as FALSE (with a warning if a different value is supplied) if no graphics device is open. |
color |
A specification for the default plotting color. |
fit |
a boolean indicating whether to fit the events provided |
int_title |
title of the plot. |
no return value, intensity plot of Markov-modulated Poisson process
1 2 3 4 | Q <- matrix(c(-0.4, 0.4, 0.2, -0.2), ncol = 2, byrow = TRUE)
x <- pp_mmpp(Q, delta = c(1 / 3, 2 / 3), lambda0 = 0.9, c = 1.2)
y <- pp_simulate(x, n = 10)
drawUniMMPPIntensity(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.