BoxMuller.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// epsic/src/util/BoxMuller.h
10
11#ifndef __BoxMuller_h
12#define __BoxMuller_h
13
15class BoxMuller {
16
17 public:
18
20 BoxMuller (long seed = 0);
21
23 float operator () () { return evaluate(); }
24
25 float evaluate ();
26
27 protected:
28
30 bool have_one_ready;
31 float one_ready;
32
33};
34
35#endif
36
bool have_one_ready
Definition BoxMuller.h:30
float operator()()
BoxMuller(long seed=0)
Definition BoxMuller.C:12
float evaluate()
Definition BoxMuller.C:21

Generated using doxygen 1.14.0