powered by
First few terms in a hyperdirichlet distribution
# S3 method for hyper2 head(x, ...)
Returns a hyper2 object
hyper2
Object of class hyper2
Further arguments, passed to head()
head()
Robin K. S. Hankin
Function is x[head(brackets(x), ...)]
x[head(brackets(x), ...)]
p <- zipf(5) names(p) <- letters[1:5] H <- rank_likelihood(rrank(20,p)) head(H)
Run the code above in your browser using DataLab