R/rexponential.R

Defines functions `rexponential`

`rexponential` <-
function(lambda) {
    #-log(runif(length(lambda)))/lambda
    rexp(rep(1,length(lambda)), rate=lambda);
}

Try the vbmp package in your browser

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

vbmp documentation built on Nov. 8, 2020, 5:38 p.m.