Learn R Programming

VBmix (version 0.3.2)

dDirichlet:

Description

get density of a sample w.r.t Dirichlet distribution (3D only).

Usage

dDirichlet(alpha = 0.1, x1, x2)

Arguments

alpha
alpha parameter of the distribution (i.e. alpha repeated 3 times).
x1
1st dimension of the sample.
x2
2nd dimension of the sample.

Value

density value.

See Also

rDirichlet

Examples

Run this code
temp <- dDirichlet(x1=0.4, x2=0.2)
# 3rd dimension is 1-x1-x2 = 0.2

Run the code above in your browser using DataLab