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

(* $Id: vbetacf.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

dvariable betacf (const dvariable &_a, const dvariable &_b, const dvariable &_x, int MAXIT)
 Incomplete beta function for variable objects.

Define Documentation

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

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

Definition at line 9 of file vbetacf.cpp.

#define FPMIN   1.0e-30

Definition at line 10 of file vbetacf.cpp.


Function Documentation

dvariable betacf ( const dvariable _a,
const dvariable _b,
const dvariable _x,
int  MAXIT 
)

Incomplete beta function for variable objects.

Evaluates the continued fraction for imcomplete beta function.

Parameters:
_a$a$
_b$b$
_x$x$
MAXITMaximum number of iterations for the continued fraction approximation in betacf.
Returns:
Incomplete beta function $I_x(a,b)$



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

Definition at line 24 of file vbetacf.cpp.