R/rmpois.R

rmpois <-
function(n,lambda.v){
  tmp=c();
  # for(i in lambda.v){
  # tmp=rbind(tmp,rpois(n,i))
  # }
  ## require(multicore)
  tmp =  do.call(rbind, parallel::mclapply(lambda.v,function(i) { rpois(n,i)}))
  return(tmp)
}

Try the XMRF package in your browser

Any scripts or data that you put into this service are public.

XMRF documentation built on May 2, 2019, 8:18 a.m.