R/log_factorial_vec.R

Defines functions log_factorial_vec

Documented in log_factorial_vec

#' compute a vector of log factorial
#'
#' @param n.vec a vector of integers
#' @return a vector of log factorial for given integers

log_factorial_vec <- function(n.vec){
  return(sapply(n.vec, log_factorial))
}
qunhualilab/gIDR documentation built on Sept. 29, 2017, 12:21 a.m.