Last chance! 50% off unlimited learning
Sale ends in
This is generic function for generating random numbers
from the underlying distribution of the distribution reference objects.
This function generates n
random numbers using the parameters
and xmin values found in the associated reference object.
dist_rand(m, n)# S4 method for conlnorm
dist_rand(m, n = "numeric")
# S4 method for conexp
dist_rand(m, n = "numeric")
# S4 method for conpl
dist_rand(m, n = "numeric")
# S4 method for conweibull
dist_rand(m, n = "numeric")
# S4 method for disexp
dist_rand(m, n = "numeric")
# S4 method for dislnorm
dist_rand(m, n = "numeric")
# S4 method for displ
dist_rand(m, n = "numeric")
# S4 method for dispois
dist_rand(m, n = "numeric")
n random numbers
a distribution object.
number of observations to be generated.
dist_cdf()
, dist_pdf()
and dist_ll()
##########################################
#Create distribution object #
##########################################
m = displ$new()
m$setXmin(7);m$setPars(2)
##########################################
#Generate five random numbers #
##########################################
dist_rand(m, 5)
Run the code above in your browser using DataLab