Public Member Functions

PsiPrior Class Reference

base class for all priors More...

#include <prior.h>

Inheritance diagram for PsiPrior:
BetaPrior GammaPrior GaussPrior invGammaPrior UniformPrior nGammaPrior ninvGammaPrior

List of all members.

Public Member Functions

virtual double pdf (double x) const
 evaluate the pdf of the prior at position x (in this default form, the parameter is completely unconstrained)
virtual double dpdf (double x)
 evaluate the derivative of the pdf of the prior at position x (in this default form, the parameter is completely unconstrained)
virtual double rand (void)
 draw a random number
virtual PsiPriorclone (void) const
 clone by value
virtual double mean (void) const
 return the mean
virtual double std (void) const
 return the standard deviation
virtual void shrink (double xmin, double xmax)
 shrink the prior if it is broader than the range between xmin and xmax
virtual int get_code (void) const
 return the typcode of this prior
virtual double cdf (double x) const
 cdf of the prior
virtual double getprm (unsigned int prm) const
virtual double ppf (double p, double start=NULL) const

Detailed Description

base class for all priors

This default prior does nothing in particular. It poses no restriction on the respective parameter at all. at any value x, the prior returns 1. Thus it is an "improper" prior in the sense that it does not correspond to a proper probability distribution.


The documentation for this class was generated from the following file: