getDistribution.Rd
Compositional models is represented by its generating sequence which is a sequence of probability distributions. This function returns a distribution that is in the specified position in the sequence.
getDistribution(model, k = 1, ref = TRUE)
model | Compositional Model |
---|---|
k | position of the Distribution. |
ref | reference. if TRUE, then a reference is returned. If FALSE, a copy of the distribution is returned |
return reference to the Distribution
or its copy
#> Probability distribution #> * Name:d2 #> * Info: #> * Variables:U #> * Non-empty items:3 #> NULLgetData(d)#> U MUDIM.frequency #> 1: 1 0.3 #> 2: 2 0.4 #> 3: 3 0.3