Description Usage Arguments Value Author(s) See Also Examples
get density of a sample w.r.t Dirichlet distribution (3D only).
1 | dDirichlet(alpha = 0.1, x1, x2)
|
alpha |
alpha parameter of the distribution (i.e. alpha repeated 3 times). |
x1 |
1st dimension of the sample. |
x2 |
2nd dimension of the sample. |
density value.
Pierrick Bruneau
rDirichlet
1 2 | temp <- dDirichlet(x1=0.4, x2=0.2)
# 3rd dimension is 1-x1-x2 = 0.2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.