R/rpwe.R

Defines functions rpwe

Documented in rpwe

#################################################################################
##   PieceWise Exponential Distribution
##   random number generation
##   version 1.0 (11/04/2016)
#################################################################################

rpwe<-function(nr=10,rate=c(0,5,0.8),tchange=c(0,3)){
  x<-1-runif(nr)
  y<-qpwe(p=x,rate=rate,tchange=tchange)$q
  list(r=y)
}

Try the PWEALL package in your browser

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

PWEALL documentation built on Aug. 9, 2023, 9:08 a.m.