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

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

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Incomplete beta function for constant objects.

Id:
cbetai.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 cbetai.cpp.

Referenced by inv_cumd_beta_stable().