ADMB Documentation  11.1.2372
 All Classes Files Functions Variables Typedefs Friends Defines
Functions
combc.cpp File Reference

($Id: combc.cpp 1112 2013-07-12 21:41:41Z johnoel $)

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

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.