Description Usage Arguments Value See Also Examples
View source: R/Categorical_Inference.r
Calculate the densities of a given set of Dirichlet samples. For a random vector x, the density function is defined as: 1/Beta(alpha) prod_i=1:p x_i^alpha_i -1 Where Beta() is the beta function. p is the dimension of x.
1 |
x |
matrix or numeric vector, if matrix every row of x is an observation, if numeric vector, it's the same as a matrix with only one row. |
alpha |
numeric, Dirichlet parameter. |
LOG |
logical, return the log density if set to "TRUE". |
A numeric vector of density values.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.