ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
cbetdev.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <fvar.hpp>
00012 
00017 double beta_deviate(double a,double b,double x,double eps)
00018 {
00019   double y=cumd_norm(x);
00020   y=.9999999*y+.00000005;
00021   double z=inv_cumd_beta_stable(a,b,y,eps);
00022   return z;
00023 }