R/Wrapper_VectorDistribution.R
sub-.VectorDistribution.Rd
Once a VectorDistribution
has been constructed, use [
to extract one or more Distribution
s from inside it.
# S3 method for class 'VectorDistribution'
vecdist[i]
v <- VectorDistribution$new(distribution = "Binom", params = data.frame(size = 1:2, prob = 0.5))
v[1]
#> Binom(prob = 0.5, size = 1)
v["Binom1"]
#> Binom(prob = 0.5, size = 1)