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

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

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

Go to the source code of this file.

Functions

dvariable betai (const dvariable a, const dvariable b, const dvariable x, int maxit)
 Incomplete beta function for variable objects.

Function Documentation

dvariable betai ( const dvariable  a,
const dvariable  b,
const dvariable  x,
int  maxit 
)

Incomplete beta function for variable objects.

Id:
vbetai.cpp 789 2010-10-05 01:01:09Z johnoel

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

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 21 of file vbetai.cpp.