drawHPPIntensity: Draw intensity of homogeneous Poisson process

Description Usage Arguments Value Examples

View source: R/drawHPPIntensity.R

Description

Draw the intensity for a homogeneous Poisson process

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
drawHPPIntensity(
  hpp = NULL,
  events,
  int_title = "Homogeneous Poisson Process",
  start = 0,
  end = max(events),
  color = "red",
  plot_events = TRUE,
  fit = FALSE,
  add = FALSE,
  verbose = FALSE
)

Arguments

hpp

object for homogeneous Poisson process

events

event times input

int_title

the plot title

start

start of events

end

end of events

color

a specification for the default plotting color.

plot_events

a boolean indicating whether input events will be plotted

fit

a boolean indicating whether to fit a hpp or use the passed object

add

whether to add the hpp intensity to an existing plot

verbose

whether to output informative messages as running

Value

no return value, intensity plot of homogeneous Poisson process

Examples

1
2
pois_y <- pp_hpp(lambda = 1)
drawHPPIntensity(pois_y, events = pp_simulate(pois_y, end = 10))

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