lddirichlet_cc: Computes the log density of the Dirichlet distribution

Description Usage Arguments Value

View source: R/RcppExports.R

Description

For each shape and rate parameter pair the log-Dirichlet density is computed. Inside the function the unsafe access functions of Armadillo at() and unsafe_col() are used, so now boundary check is performed. In each step the lgammafn() function from Rcpp's R namespace is used. At this time unused.

Usage

1

Arguments

values

A matrix of dimension M x K for which the log-density should be calculated.

par

A vector of dimension K x 1 containing the Dirichlet parameters.

Value

A vector of Dirichlet log-density values.


simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.