sample_dirichlet: Samples from a Dirichlet distribution given a hyperparameter

Description Usage Arguments Value Note See Also

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: H, JSD.matrix, JSD, KLD, sample_antoniak, sample_multinomial


clintpgeorge/clda documentation built on May 13, 2019, 8 p.m.