Skip to contents

Both neighbours of the claimed mode are checked, so a wrong tie-breaking rule fails loudly rather than silently.

Usage

PoisMode(a)

Arguments

a

expected count, > 0.

Value

list(mode, p_mode).

References

Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eq (4.89).

Examples

PoisMode(3.7)$mode
#> [1] 3