sample_dirichlet: Samples from a Dirichlet distribution given a hyperparameter

Description Usage Arguments Value Note See Also

View source: R/RcppExports.R

Description

Samples from a Dirichlet distribution given a hyperparameter

Usage

1
sample_dirichlet(num_elements, alpha)

Arguments

num_elements

the dimention of the Dirichlet distribution

alpha

the hyperparameter vector (a column vector)

Value

returns a Dirichlet sample (a column vector)

Note

Author: Clint P. George

Created on: 2014

See Also

Other utils: sample_antoniak, sample_multinomial


clintpgeorge/ldamcmc documentation built on Feb. 22, 2020, 12:39 p.m.