hpp.mean: Expected value of an homogeneous Poisson process.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/poisson.R

Description

Calculate the expected value of an homogeneous Poisson process at regular points in time.

Usage

1
hpp.mean(rate, t0 = 0, t1 = 1, num.points = 100, maximum = NULL)

Arguments

rate

The rate at which events occur in the Poisson process, aka lambda

t0

Start time

t1

End time

num.points

Number of points to use between t0 and t1 in calulating the mean

maximum

The optional maximum value that the process should take

Value

A numeric vector of length num.points

Author(s)

Kristian Brock - Author, Daniel Slade - Contributor

See Also

hpp.scenario, nhpp.mean

Examples

1
hpp.mean(rate = 20, t1 = 5, maximum = 50)

Example output

  [1]  0.000000  1.010101  2.020202  3.030303  4.040404  5.050505  6.060606
  [8]  7.070707  8.080808  9.090909 10.101010 11.111111 12.121212 13.131313
 [15] 14.141414 15.151515 16.161616 17.171717 18.181818 19.191919 20.202020
 [22] 21.212121 22.222222 23.232323 24.242424 25.252525 26.262626 27.272727
 [29] 28.282828 29.292929 30.303030 31.313131 32.323232 33.333333 34.343434
 [36] 35.353535 36.363636 37.373737 38.383838 39.393939 40.404040 41.414141
 [43] 42.424242 43.434343 44.444444 45.454545 46.464646 47.474747 48.484848
 [50] 49.494949 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000
 [57] 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000
 [64] 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000
 [71] 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000
 [78] 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000
 [85] 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000
 [92] 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000 50.000000
 [99] 50.000000 50.000000

poisson documentation built on May 2, 2019, 6:53 a.m.