PSR
CHIVE
Ask a Question
Search
PSR
CHIVE:
powered by
FreeFind
Home
Install
Use
Develop
Support
News
Credits
hosted by
Util
epsic
src
util
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
15
class
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
BoxMuller
BoxMuller::have_one_ready
bool have_one_ready
Definition
BoxMuller.h:30
BoxMuller::operator()
float operator()()
BoxMuller::BoxMuller
BoxMuller(long seed=0)
Definition
BoxMuller.C:12
BoxMuller::evaluate
float evaluate()
Definition
BoxMuller.C:21
Generated using
doxygen
1.14.0