simHPc: Generating points in a homogenous Poisson process

Description Usage Arguments Details Value References See Also Examples

Description

This function generates a given number of occurrence points in a homogenous Poisson process (HPP) in continuous time.

Usage

1
simHPc(lambda, nEv, fixed.seed=NULL)

Arguments

lambda

Numeric positive value. Intensity λ 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.

Details

The points in a HPP are generated using independent exponentials with mean λ.

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.

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.

References

Ross, S.M. (2006). Simulation. Academic Press.

See Also

simNHPc, IndNHPP

Examples

1
2
aux<-simHPc(lambda=0.01, nEv=50,fixed.seed=123)
aux$posH

IndTestPP documentation built on Aug. 29, 2020, 1:06 a.m.