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

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

#include <df1b2fun.h>

Go to the source code of this file.

Defines

#define EPS   double(1.0e-9)
#define FPMIN   double(1.0e-30)

Functions

df1b2variable betacf (const df1b2variable &a, const df1b2variable &b, double x, int MAXIT)
 Incomplete beta function for df1b2variable objects.
df1b2variable betai (const df1b2variable &a, const df1b2variable &b, double x, int maxit)
 Incomplete beta function for df1b2variable objects.

Define Documentation

#define EPS   double(1.0e-9)
Id:
df1b2bet.cpp 789 2010-10-05 01:01:09Z johnoel

Author: David Fournier Copyright (c) 2008, 2009, 2010 Regents of the University of California

Definition at line 9 of file df1b2bet.cpp.

#define FPMIN   double(1.0e-30)

Definition at line 10 of file df1b2bet.cpp.

Referenced by betacf().


Function Documentation

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

Incomplete beta function for df1b2variable 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 56 of file df1b2bet.cpp.

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

Incomplete beta function for df1b2variable objects.

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 29 of file df1b2bet.cpp.