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

(* $Id: cbetacf.cpp 789 2010-10-05 01:01:09Z johnoel $)

#include <fvar.hpp>
#include <math.h>

Go to the source code of this file.

Defines

#define EPS   1.0e-9
#define FPMIN   1.0e-30

Functions

double betacf (const double a, const double b, const double x, int MAXIT)
 Incomplete beta function for constant objects.

Define Documentation

#define EPS   1.0e-9
Id:
cbetacf.cpp 789 2010-10-05 01:01:09Z johnoel

Author: David Fournier Copyright (c) 2009, 2010 ADMB Foundation

Definition at line 9 of file cbetacf.cpp.

Referenced by betacf(), gcf(), and gser().

#define FPMIN   1.0e-30

Definition at line 10 of file cbetacf.cpp.

Referenced by betacf().


Function Documentation

double betacf ( const double  a,
const double  b,
const double  x,
int  MAXIT 
)

Incomplete beta function for constant objects.

Parameters:
a$a$
b$b$
x$x$ Evaluates the continued fraction approximation for imcomplete beta function.



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

Definition at line 22 of file cbetacf.cpp.

Referenced by betai().