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

(* $Id$)

$Id$ Author: Unknown More...

#include <fvar.hpp>

Go to the source code of this file.

Functions

dvariable factln (const dvariable &n)
 Log-factorial $\ln(n!)$.
double factln (double n)
 Log-factorial $\ln(n!)$.
dvar_vector factln (const dvar_vector &r)
 Log-factorial of an array.
dvariable gammln (const dvariable &xx)
dvar_vector gammln (const dvar_vector &v)
 Log-Gamma of an array.
dvariable gammln (const prevariable &z)
static dvariable gammlnguts (const prevariable _z)
dvariable log_comb (const dvariable &n, double k)
 Log of the binomial coefficent i.e log of 'n choose k'.
dvariable log_comb (const dvariable &n, const dvariable &k)
 Log of the binomial coefficent i.e log of 'n choose k'.
dvariable log_comb (double n, const dvariable &k)
 Log of the binomial coefficent i.e log of 'n choose k'.
dvar_vector log_comb (const dvar_vector &n, const dvar_vector &r)
 Log-binomial of two arrays.
dvar_vector log_comb (const dvector &n, const dvar_vector &r)
 Log-binomial of a number with an arrays.
dvar_vector log_comb (const dvar_vector &n, const dvector &r)
 Log-binomial of two arrays.
dvar_vector log_comb (const dvariable &n, const dvector &r)
 Log-binomial of a number with an arrays.
dvar_vector log_comb (const dvariable &n, const dvar_vector &r)
 Log-binomial of a number with an arrays.
dvar_vector log_comb (double n, const dvar_vector &r)
 Log-binomial of a number with an arrays.

Detailed Description

$Id$ Author: Unknown

This file has routines for the variable type log-factorial, log-binomial, and log-gamma functions

Definition in file combv.cpp.


Function Documentation

dvariable factln ( const dvariable n)

Log-factorial $\ln(n!)$.

Parameters:
na number
Returns:
log of the factorial

Definition at line 59 of file combv.cpp.

dvar_vector factln ( const dvar_vector r)

Log-factorial of an array.

Parameters:
ran array
Returns:
log of the factorial

Definition at line 187 of file combv.cpp.

dvariable gammln ( const dvariable xx)
dvar_vector gammln ( const dvar_vector v)

Log-Gamma of an array.

Parameters:
van array
Returns:
log of the factorial

Definition at line 226 of file combv.cpp.

dvariable gammln ( const prevariable z)

Definition at line 282 of file combv.cpp.

static dvariable gammlnguts ( const prevariable  _z) [static]

Definition at line 240 of file combv.cpp.

Referenced by gammln().

dvariable log_comb ( const dvariable n,
double  k 
)

Log of the binomial coefficent i.e log of 'n choose k'.

Parameters:
na number
ka number
Returns:
log of the binomial coefficent

Definition at line 24 of file combv.cpp.

dvariable log_comb ( const dvariable n,
const dvariable k 
)

Log of the binomial coefficent i.e log of 'n choose k'.

Parameters:
na number
ka number
Returns:
log of the binomial coefficent

Definition at line 36 of file combv.cpp.

dvariable log_comb ( double  n,
const dvariable k 
)

Log of the binomial coefficent i.e log of 'n choose k'.

Parameters:
na number
ka number
Returns:
log of the binomial coefficent

Definition at line 49 of file combv.cpp.

dvar_vector log_comb ( const dvar_vector n,
const dvar_vector r 
)

Log-binomial of two arrays.

Parameters:
nan array
ran array
Returns:
log of the binomial coefficent

Definition at line 70 of file combv.cpp.

dvar_vector log_comb ( const dvector n,
const dvar_vector r 
)

Log-binomial of a number with an arrays.

Parameters:
na number
ran array
Returns:
log of the binomial coefficent

Definition at line 96 of file combv.cpp.

dvar_vector log_comb ( const dvar_vector n,
const dvector r 
)

Log-binomial of two arrays.

Parameters:
nan array
ran array
Returns:
log of the binomial coefficent

Definition at line 122 of file combv.cpp.

dvar_vector log_comb ( const dvariable n,
const dvector r 
)

Log-binomial of a number with an arrays.

Parameters:
na number
ran array
Returns:
log of the binomial coefficent

Definition at line 148 of file combv.cpp.

dvar_vector log_comb ( const dvariable n,
const dvar_vector r 
)

Log-binomial of a number with an arrays.

Parameters:
na number
ran array
Returns:
log of the binomial coefficent

Definition at line 168 of file combv.cpp.

dvar_vector log_comb ( double  n,
const dvar_vector r 
)

Log-binomial of a number with an arrays.

Parameters:
na number
ran array
Returns:
log of the binomial coefficent

Definition at line 207 of file combv.cpp.