R/rpwu.R

Defines functions rpwu

Documented in rpwu

#################################################################################
##   PieceWise Uniform Distribution
##   random number generation
##   version 1.0 (11/04/2016)
#################################################################################
rpwu<-function(nr=10,u=c(0,6,0.4),ut=c(1,2)){
  x<-1-runif(nr)
  y<-qpwu(p=x,u=u,ut=ut)$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.