ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
drancau.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 double randcau(const random_number_generator& rng)
18 {
20  return(u);
21 }
22 
28 {
29  for (int i=indexmin(); i<=indexmax(); i++)
30  {
31  (*this)(i)=randcau(rng);
32  }
33 }
34 
40 {
41  for (int i=rowmin(); i<=rowmax(); i++)
42  {
43  elem(i).fill_randcau(rng);
44  }
45 }
46 
52 {
53  for (int i=slicemin(); i<=slicemax(); i++)
54  {
55  elem(i).fill_randcau(rng);
56  }
57 }
void fill_randcau(const random_number_generator &rng)
Description not yet available.
Definition: drancau.cpp:51
int indexmin() const
Get minimum valid index.
Definition: dvector.h:199
void fill_randcau(const random_number_generator &rng)
Description not yet available.
Definition: drancau.cpp:39
int slicemax() const
Definition: fvar.hpp:3830
Description not yet available.
Definition: fvar.hpp:7951
int rowmax() const
Definition: fvar.hpp:2929
int indexmax() const
Get maximum valid index.
Definition: dvector.h:204
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int slicemin() const
Definition: fvar.hpp:3826
void fill_randcau(const random_number_generator &rng)
Description not yet available.
Definition: drancau.cpp:27
dvector & elem(int i)
Definition: fvar.hpp:3011
double inv_cumd_cauchy(const double &x)
Description not yet available.
Definition: cumd_cau.cpp:49
double randcau(const random_number_generator &rng)
Description not yet available.
Definition: drancau.cpp:17
double better_rand(long int &idum)
Description not yet available.
Definition: bet_rand.cpp:18
dmatrix & elem(int k)
Definition: fvar.hpp:3870
int rowmin() const
Definition: fvar.hpp:2925