ADMB Documentation
-a65f1c97
|
Gamma density functions. More...
#include "statsLib.h"
Go to the source code of this file.
Functions | |
dvariable | dgamma (const dvariable &x, const double &a, const double &b) |
dvariable | dgamma (const dvariable &x, const dvariable &a, const dvariable &b) |
dvariable | dgamma (const dvector &x, const prevariable &a, const prevariable &b) |
dvariable | dgamma (const dvector &x, const prevariable &a, const dvar_vector &b) |
dvariable | dgamma (const dvector &x, const dvar_vector &a, const dvar_vector &b) |
dvariable | dgamma (const dvector &x, const dvar_vector &a, const prevariable &b) |
Gamma density functions.
This file contains the negative loglikelihood functions for the gamma distribution. The function dgamma is implemented as:
The expected value is given by and the variance as . Note that you can also derive and from the expected value and variance via:
Definition in file dgamma.cpp.
x | is the quantile and must be greater than 0. |
a | is the shape parameter and must be positive. |
b | is the rate parameter and must be positive. |
Definition at line 37 of file dgamma.cpp.
x | is the quantile and must be greater than 0. |
a | is the shape parameter and must be positive. |
b | is the rate parameter and must be positive. |
Definition at line 66 of file dgamma.cpp.
dvariable dgamma | ( | const dvector & | x, |
const prevariable & | a, | ||
const prevariable & | b | ||
) |
x | is the quantile and must be greater than 0. |
a | is the shape parameter and must be positive. |
b | is the rate parameter and must be positive. |
Definition at line 97 of file dgamma.cpp.
dvariable dgamma | ( | const dvector & | x, |
const prevariable & | a, | ||
const dvar_vector & | b | ||
) |
x | is the quantile and must be greater than 0. |
a | is the shape parameter and must be positive. |
b | is the rate parameter and must be positive. |
Definition at line 129 of file dgamma.cpp.
dvariable dgamma | ( | const dvector & | x, |
const dvar_vector & | a, | ||
const dvar_vector & | b | ||
) |
x | is the quantile and must be greater than 0. |
a | is the shape parameter and must be positive. |
b | is the rate parameter and must be positive. |
Definition at line 163 of file dgamma.cpp.
dvariable dgamma | ( | const dvector & | x, |
const dvar_vector & | a, | ||
const prevariable & | b | ||
) |
x | is the quantile and must be greater than 0. |
a | is the shape parameter and must be positive. |
b | is the rate parameter and must be positive. |
Definition at line 197 of file dgamma.cpp.
Generated on Wed Sep 7 2022 00:01:31 for ADMB Documentation by 1.8.5 |