ldgamma_cc: Computes the log density of the Gamma distribution

Description Usage Arguments Value

View source: R/RcppExports.R

Description

For each shape and rate parameter pair the log gamma 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 lngamma() function from Rcpp's R namespace is used. At this time unused.

Usage

1
ldgamma_cc(values, shape, rate)

Arguments

values

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

shape

A vector of dimension K x 1 with Gamma shape parameters.

rate

A vector of dimension K x 1 with Gamma rate parameters.

Value

A matrix of Gamma log-density values for each pair of parameters in a column.


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