R/rand.exp.R

Defines functions rand.exp

Documented in rand.exp

#' Generate Random Exponential Variables
#' 
#' @description 
#' Generates a pseudo-random exponential variable using the Whichman-Hill pseudo-random number generator function
#' 
#' @param n Number of observations
#' @param rate vector of rates
#' 
#' @author Tyler Hunt \email{tyler@@psychoanalytix.com}
#' 
#' @export

rand.exp<-function(n, rate=1){
  qexp( replicate( n, wich.hill() ) )*rate
}
JackStat/CompPack documentation built on May 7, 2019, 10:16 a.m.