R/poisson.R

#' Infer Poisson process
#'
#' Infer a Poisson process from data
#'
#' @param obs A series of Poisson trials
#' @return a Gamma random variable for the rate \eqn{\lambda}
#'
#' @export
infer_poisson <- function(obs) {
  gamma(sum(obs), length(obs))
}
luishusier/magnifyr documentation built on May 21, 2019, 8:56 a.m.