powered by
Replicates a constructed distribution into either a
VectorDistribution (class = "vector")
class = "vector"
ProductDistribution (class = "product")
class = "product"
MixtureDistribution (class = "mixture")
class = "mixture"
If the distribution is not a custom Distribution then uses the more efficient distribution/params constructor, otherwise uses distlist.
distribution/params
distlist
# S3 method for Distribution rep(x, times, class = c("vector", "product", "mixture"), ...)
Distribution
(integer(1)) Number of times to replicate the distribution
(integer(1))
(character(1)) What type of vector to create, see description.
(character(1))
Additional arguments, currently unused.
# NOT RUN { rep(Binomial$new(), 10) rep(Gamma$new(), 2, class = "product") # }
Run the code above in your browser using DataLab