drawUniMMPPIntensity: Draw the intensity of the Markov-modulated Poisson...

Description Usage Arguments Value Examples

View source: R/drawUniMMPPIntensity.R

Description

Take a mmpp object and draw its intensity accordingly

Usage

1
2
3
4
5
6
7
8
drawUniMMPPIntensity(
  mmpp,
  simulation,
  add = FALSE,
  color = 1,
  fit = FALSE,
  int_title = "Intensity Plot of MMPP"
)

Arguments

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.

Value

no return value, intensity plot of Markov-modulated Poisson process

Examples

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)

ppdiag documentation built on Aug. 12, 2021, 5:07 p.m.