50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

ppdiag (version 0.1.1)

fithpp: Fit a homogeneous poisson process to event data

Description

Compute maximum likelihood estimator of the rate of a homogeneous Poisson process for the given events.

Usage

fithpp(events, end = max(events))

Arguments

events

vector containing the event times.

end

end of observation period, starting from 0 (default is last event)

Value

a hpp object containing the events and the estimated parameter

Examples

Run this code
# NOT RUN {
pois_y <- pp_hpp(lambda = 1)
events <- pp_simulate(pois_y, end = 10)
fithpp(events)
# }

Run the code above in your browser using DataLab