gaussian (normal) prior More...
#include <prior.h>
Public Member Functions | |
| GaussPrior (double mean, double sd) | |
| initialize prior to have mean mean and standard deviation sd | |
| GaussPrior (const GaussPrior &original) | |
| copy contructor | |
| double | pdf (double x) const |
| return pdf of the prior at position x | |
| double | dpdf (double x) |
| return derivative of the prior at position x | |
| double | rand (void) |
| draw a random number | |
| PsiPrior * | clone (void) const |
| clone by value | |
| double | mean (void) const |
| mean | |
| double | std (void) const |
| return standard deviation | |
| 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 | getprm (unsigned int prm) const |
| double | ppf (double p, double start=NULL) const |
gaussian (normal) prior
This defines a gaussian prior on the entire real axis. It's pdf is defined by the normal
1.7.1