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)

Arguments

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

Value

return reference to the Distribution or its copy

See also

Examples

data(m) d <- getDistribution(m, k = 2); d
#> Probability distribution #> * Name:d2 #> * Info: #> * Variables:U #> * Non-empty items:3 #> NULL
getData(d)
#> U MUDIM.frequency #> 1: 1 0.3 #> 2: 2 0.4 #> 3: 3 0.3