ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
drannegbin.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include "fvar.hpp"
12 
17 void dvector::fill_randnegbinomial(double lambda,double tau,
18  const random_number_generator& rng)
19 {
20  for (int i=indexmin(); i<=indexmax(); i++)
21  {
22  elem(i)=randnegbinomial(lambda,tau,rng);
23  }
24 }
double & elem(int i)
Definition: dvector.h:152
int indexmin() const
Get minimum valid index.
Definition: dvector.h:199
double randnegbinomial(double mu, double tau, const random_number_generator &rng)
Description not yet available.
Definition: rannegbn.cpp:17
Description not yet available.
Definition: fvar.hpp:7951
int indexmax() const
Get maximum valid index.
Definition: dvector.h:204
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void fill_randnegbinomial(double lambda, double tau, const random_number_generator &rng)
Description not yet available.
Definition: drannegbin.cpp:17