dgamma_cc: Computes the density of the Gamma distribution

Description Usage Arguments Value

View source: R/RcppExports.R

Description

For each shape and rate parameter pair the 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
dgamma_cc(values, shape, rate)

Arguments

values

A matrix of dimension M x K for which the 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 density values for each pair of parameters in a column.


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