ADMB Documentation  11.6rc.3404
 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.
dvariable pbeta (const dvariable x, const dvariable a, const dvariable b, int maxit)
 beta distribution function for variable objects (alias of ibeta function with same arguments order as in R).

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.

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

beta distribution function for variable objects (alias of ibeta function with same arguments order as in R).

Parameters:
x$x$
a$a$
b$b$
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 46 of file vbetai.cpp.