ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
combc.cpp File Reference

(Last Changed on July 12, 2013 for git-revision cfce19d5d17e5f8772d8552a6e0e5753213ca15b.)

This file has routines for the constant type log-factorial, log-binomial, and log-gamma functions for scalar and vector arguments. More...

#include <fvar.hpp>

Go to the source code of this file.

Functions

double factln (double n)
 Log-factorial $\ln(n!)$. More...
 
dvector factln (const dvector &r)
 Log-factorial of an array. More...
 
double gammln (double xx)
 Log gamma function. More...
 
dvector gammln (const dvector &v)
 Log-Gamma of an array. More...
 
double log_comb (double n, double k)
 Log of the binomial coefficent; i.e log of 'n choose k'. More...
 
dvector log_comb (const dvector &n, const dvector &r)
 Log-binomial of two arrays. More...
 
dvector log_comb (double n, const dvector &r)
 Log-binomial of a number with an arrays. More...
 

Detailed Description

This file has routines for the constant type log-factorial, log-binomial, and log-gamma functions for scalar and vector arguments.

Definition in file combc.cpp.

Function Documentation

dvector log_comb ( double  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 101 of file combc.cpp.