simHPc: Generating points in a homogenous Poisson process
Description
This function generates a given number of occurrence points
in a homogenous Poisson process (HPP) in continuous time.
Usage
simHPc(lambda, nEv, fixed.seed=NULL)
Arguments
lambda
Numeric positive value. Intensity \(\lambda\) used to generate the HPP.
nEv
Optional. Positive integer. Number of points to be generated in the HPPs.
fixed.seed
An integer or NULL. If it is an integer, that is the value used to set the seed
in random generation processes. It it is NULL, a random seed is used.
Value
A list with elements:
posN
Numeric vector. Occurrence points of the HPP.
T
Length of the period where the given number of points are generated.
fixed.seed
Input argument.
Details
The points in a HPP are generated using
independent exponentials with mean \(\lambda\).
Points in a HPP can also be generated using simNHPc. The main difference
is that in simHPc the number of points to be generated is given, while simNHPc
generates points in a period of a given length T.