ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
Defines | Functions
df3gammp.cpp File Reference

(* $Id$)

#include <df1b2fun.h>

Go to the source code of this file.

Defines

#define EPS   1.0e-9
#define FPMIN   1.0e-30
#define ITMAX   100
 $Id$

Functions

df3_two_variable cumd_cauchy (const df3_two_variable &x, const df3_two_variable &a)
df3_two_variable cumd_exponential (const df3_two_variable &x, const df3_two_variable &a)
df3_two_variable cumd_gamma (const df3_two_variable &x, const df3_two_variable &a)
df3_two_variable gammln (const df3_two_variable &xx)
 Log gamma function.
void gcf (const df3_two_variable &_gammcf, const df3_two_variable &a, const df3_two_variable &x, const df3_two_variable &_gln)
 Incomplete gamma function.
double get_values (double x, double y, int print_switch)
void gser (const df3_two_variable &_gamser, const df3_two_variable &a, const df3_two_variable &x, const df3_two_variable &_gln)
 Incomplete gamma function.
df1b2variable log_negbinomial_density (double x, const df1b2variable &_xmu, const df1b2variable &_xtau)

Define Documentation

#define EPS   1.0e-9

Definition at line 9 of file df3gammp.cpp.

#define FPMIN   1.0e-30

Definition at line 11 of file df3gammp.cpp.

Referenced by gcf().

#define ITMAX   100

$Id$

Author: David Fournier Copyright (c) 2009-2012 ADMB Foundation

Definition at line 8 of file df3gammp.cpp.

Referenced by gcf(), and gser().


Function Documentation

Definition at line 166 of file df3gammp.cpp.

Definition at line 157 of file df3gammp.cpp.

Definition at line 142 of file df3gammp.cpp.

Log gamma function.

Parameters:
xx$x$
Returns:
$\ln\bigr(\Gamma(x)\bigl)$



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 6

Definition at line 46 of file df3gammp.cpp.

void gcf ( const df3_two_variable _gammcf,
const df3_two_variable a,
const df3_two_variable x,
const df3_two_variable _gln 
)

Incomplete gamma function.

Continued fraction approximation.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 6

Definition at line 71 of file df3gammp.cpp.

double get_values ( double  x,
double  y,
int  print_switch 
)
void gser ( const df3_two_variable _gamser,
const df3_two_variable a,
const df3_two_variable x,
const df3_two_variable _gln 
)

Incomplete gamma function.

Continued fraction approximation.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 6

Definition at line 107 of file df3gammp.cpp.

df1b2variable log_negbinomial_density ( double  x,
const df1b2variable _xmu,
const df1b2variable _xtau 
)

Definition at line 15 of file df3gammp.cpp.