R/PoisMode.R
PoisMode.Rd
Both neighbours of the claimed mode are checked, so a wrong tie-breaking rule fails loudly rather than silently.
PoisMode(a)
expected count, > 0.
list(mode, p_mode).
Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eq (4.89).
PoisMode(3.7)$mode #> [1] 3