Stan Math Library
4.9.0
Automatic Differentiation
|
return_type_t< T_prob, T_prior_size > stan::math::dirichlet_log | ( | const T_prob & | theta, |
const T_prior_size & | alpha | ||
) |
The log of the Dirichlet density for the given theta and a vector of prior sample sizes, alpha.
Each element of alpha must be greater than 0. Each element of theta must be greater than or 0. Theta sums to 1.
dirichlet_lpdf
theta | A scalar vector. |
alpha | Prior sample sizes. |
std::domain_error | if any element of alpha is less than or equal to 0. |
std::domain_error | if any element of theta is less than 0. |
std::domain_error | if the sum of theta is not 1. |
T_prob | Type of scalar. |
T_prior_size | Type of prior sample sizes. |
Definition at line 31 of file dirichlet_log.hpp.