negative gamma prior More...
#include <prior.h>
Public Member Functions | |
nGammaPrior (double shape, double scale) | |
nGammaPrior (const nGammaPrior &original) | |
copy constructor | |
double | pdf (double x) const |
return pdf at position x | |
double | dpdf (double x) |
return derivative of pdf | |
double | rand (void) |
draw a random number | |
PsiPrior * | clone (void) const |
clone by value | |
double | mean (void) const |
return the mean | |
void | shrink (double xmin, double xmax) |
shrink the prior if it is broader than the range between xmin and xmax | |
int | get_code (void) const |
return the typcode of this prior | |
double | cdf (double x) const |
return the typcode of this prior | |
double | ppf (double p, double start=NULL) const |
negative gamma prior
This defines a gamma prior that is defined for the negative axis. Thus, the pdf is defined by
for negative numbers and is zero otherwise.