Learn R Programming

seqCBS (version 1.2.1)

nhppSimulate: Simulate a non-homogeneous Poisson Process

Description

This function simulates an NHPP by blocked thinning

Usage

nhppSimulate(smoothRates)

Arguments

smoothRates

A list containing x and y, which are the mid-points of the window and the smoothed number of events in this window

Value

Returns a vector of events of a realization of the NHPP

Details

The list component y of the argument represents the smoothed number of events in the window, namely, they represent the window rate

See Also

nhppRateEstimate, nhppSpike