ADMB Documentation
-a65f1c97
|
Go to the source code of this file.
Functions | |
template<class Type > | |
Type | _dtweedie (const double y, Type &mu, Type &phi, Type &p, bool give_log) |
dtweedie function (same as dtweedie.series from R package 'tweedie'). More... | |
double | asDouble (const dvariable &v) |
dvariable | dtweedie (const double y, dvariable &mu, dvariable &phi, dvariable &p, const bool use_log) |
dtweedie is a wrapper to _dtweedie using ADMB data types. More... | |
double | fmax2 (double a, const dvariable &v) |
int | imax2 (int a, double v) |
int | imin2 (int a, int b) |
dvariable | lgamma (const prevariable &v) |
Type _dtweedie | ( | const double | y, |
Type & | mu, | ||
Type & | phi, | ||
Type & | p, | ||
bool | give_log | ||
) |
dtweedie function (same as dtweedie.series from R package 'tweedie').
Silently returns NaN if not within the valid parameter range:
.
The dtweedie function was copied from TMB repository at https://github.com/kaskr/adcomp, then modified for ADMB data types.
Definition at line 48 of file dtweedie.cpp.
Referenced by dtweedie().
double asDouble | ( | const dvariable & | v | ) |
Definition at line 19 of file dtweedie.cpp.
dvariable dtweedie | ( | const double | y, |
dvariable & | mu, | ||
dvariable & | phi, | ||
dvariable & | p, | ||
const bool | use_log | ||
) |
dtweedie is a wrapper to _dtweedie using ADMB data types.
Definition at line 59 of file dtweedie.cpp.
double fmax2 | ( | double | a, |
const dvariable & | v | ||
) |
int imax2 | ( | int | a, |
double | v | ||
) |
Definition at line 5 of file dtweedie.cpp.
int imin2 | ( | int | a, |
int | b | ||
) |
Definition at line 10 of file dtweedie.cpp.
Referenced by rdqk15i().
dvariable lgamma | ( | const prevariable & | v | ) |
Definition at line 23 of file dtweedie.cpp.
Generated on Wed Sep 7 2022 00:01:31 for ADMB Documentation by 1.8.5 |