R/log_factorial.R

Defines functions log_factorial

Documented in log_factorial

#' compute the log factorial
#' @param n integer
#' @return log factorial of the given integer

log_factorial <- function(n){
  return(sum(log(1:n)))
}
MonkeyLB/gIDR documentation built on May 14, 2019, 10:36 a.m.