Density.cpp File Reference

Collects a variety of constants and function in namespace Util. More...

#include <cmath>
#include <limits>
#include "mcmc++/Density.h"
#include "mcmc++/util.h"
#include <iostream>

Include dependency graph for Density.cpp:

Go to the source code of this file.

Functions

double Density::dbeta (const double x, const double a, const double b, const bool give_log)
double Density::dbinom (const int k, const int n, double p, bool give_log)
double Density::dcauchy (const double x, const double l, const double s, const bool give_log)
double Density::dchisq (const double x, const double n, const bool give_log)
double Density::ddirch (const std::vector< double > &p, const std::vector< double > &a, const bool give_log, const bool include_const)
double Density::dexp (const double x, const double b, const bool give_log)
double Density::df (const double x, const double m, const double n, const bool give_log)
double Density::dgamma (const double x, const double shape, const double scale, const bool give_log)
double Density::dgeom (const unsigned x, const double p, const bool give_log)
double Density::dhyper (const unsigned x, const unsigned r, const unsigned b, const unsigned n, bool giveLog)
double Density::dinvgamma (const double y, const double shape, const double scale, const bool give_log)
double Density::dlnorm (const double x, const double mu, const double sigma, const bool give_log)
double Density::dlogis (const double x, const double m, const double s, const bool give_log)
double Density::dmulti (const std::vector< int > &n, const std::vector< double > &p, const bool give_log, const bool include_factorial)
double Density::dnbinom (const unsigned x, const double n, const double p, const bool give_log)
double Density::dnorm (const double x_in, const double mu, const double sigma, const bool give_log)
double Density::dpois (const unsigned x, const double lambda, const bool give_log)
double Density::dt (const double x, const double n, const bool give_log)
double Density::dweibull (const double x, const double a, const double b, const bool give_log)
double Density::gamln (const double x)
double Density::logChoose (const double n, const double k)
double Density::lbeta (const double a, const double b)
double Density::BetaEntropy (const double a, const double b)


Detailed Description

Collects a variety of constants and function in namespace Util.

Provides definitions for a variety of functions related to numerical evaluation of probability densities.

All are declared in namespace Density with an eye towards avoiding naming conflicts.

Author:
Kent Holsinger
Date:
2005-05-18

Definition in file Density.cpp.


Generated on Tue Mar 27 16:03:42 2007 for mcmc by  doxygen 1.5.1