gammaLogLikelihood: Gamma log-likelihood

View source: R/RcppExports.R

gammaLogLikelihoodR Documentation

Gamma log-likelihood

Description

Used in calculating model probability in Metropolis-Hastings algorithm when proposals are from the Gamma distribution.

Usage

gammaLogLikelihood(x, shape, rate)

Arguments

x

- double; the value to calculate the unnormalised likelihood of.

shape

- double; the shape of the Gamma distribution.

rate

- double; the rate of the Gamma distribution

Value

the unnormalised log-likelihood of x in a Gamma with parameters shape and rate.


batchmix documentation built on May 29, 2024, 2:14 a.m.