ADMB Documentation  11.1.2500
 All Classes Files Functions Variables Typedefs Friends Defines
drannegbin.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: drannegbin.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include "fvar.hpp"
00012 
00017 void dvector::fill_randnegbinomial(double lambda,double tau,
00018   const random_number_generator& rng)
00019 {
00020   for (int i=indexmin(); i<=indexmax(); i++)
00021   {
00022     elem(i)=randnegbinomial(lambda,tau,rng);
00023   }
00024 }