ADMB Documentation  11.1.2270
 All Classes Files Functions Variables Typedefs Friends Defines
vbeta.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: vbeta.cpp 1610 2014-02-05 06:00:52Z stevenmartell $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <fvar.hpp>
00012 
00021 dvariable beta(const prevariable& a,const prevariable& b )
00022 {
00023   return exp(gammln(a)+gammln(b)-gammln(a+b));
00024 }