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

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

pois_y <- pp_hpp(lambda = 1) events <- pp_simulate(pois_y, end = 10) fithpp(events)
#> Homogeneous Poisson Process #> lambda #> events 0.4879321 0.5307325 1.26847 1.554607 5.437887 7.204159 7.650499 9.452439