ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
franpois.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 dvar_vector::fill_randpoisson(double lambda,
18  const random_number_generator& rng)
19 {
20  for (int i=indexmin(); i<=indexmax(); i++)
21  {
22  elem(i)=randpoisson(lambda,rng);
23  }
24 }
prevariable elem(int i)
Definition: fvar.hpp:2221
Description not yet available.
Definition: fvar.hpp:7951
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int indexmin() const
Definition: fvar.hpp:2287
double randpoisson(double xm, const random_number_generator &rng)
Poisson random deviates.
Definition: dranpois.cpp:37
void fill_randpoisson(double lambda, const random_number_generator &rng)
Description not yet available.
Definition: franpois.cpp:17
int indexmax() const
Definition: fvar.hpp:2292