ddirichlet_cpp {oeli} | R Documentation |
Compute density of Dirichlet distribution
Description
This function computes the density of a Dirichlet distribution.
Usage
ddirichlet_cpp(x, concentration, log = FALSE)
Arguments
x |
A numeric , a weight vector of length p .
Each vector element must be between 0 and 1 .
The sum of the vector elements must be 1 .
|
concentration |
A numeric , the concentration vector of length p .
|
log |
A logical , if TRUE the logarithm of the density value is
returned.
By default, log = FALSE .
|
Details
This function performs no input checks. See ddirichlet
for the version with input checks.
Value
A numeric
, the density value.
[Package
oeli version 0.5.0
Index]