BALL
1.4.79
include
BALL
MATHS
randomNumberGenerator.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2 sw=2
3
//
4
// $Id: randomNumberGenerator.h,v 1.1.18.1 2007/03/25 21:23:46 oliver Exp $
5
//
6
7
#ifndef BALL_MATHS_RANDOMNUMBERGENERATOR_H
8
#define BALL_MATHS_RANDOMNUMBERGENERATOR_H
9
10
#ifndef BALL_COMMON_GLOBAL_H
11
# include <
BALL/COMMON/global.h
>
12
#endif
13
14
#include<vector>
15
16
namespace
BALL
17
{
18
63
class
BALL_EXPORT
BALL_DEPRECATED
RandomNumberGenerator
64
{
65
66
public
:
67
69
RandomNumberGenerator
();
70
72
RandomNumberGenerator
(
const
RandomNumberGenerator
& rng);
73
75
~
RandomNumberGenerator
();
76
77
void
setup(
int
ij = 1802,
int
kl = 9373);
78
83
double
randomUniform();
84
95
double
randomGaussian(
double
mean,
double
stddev);
96
99
int
randomInteger(
int
lower,
int
upper);
100
103
double
randomDouble(
double
lower,
double
upper);
104
106
bool
isValid
()
const
107
108
{
109
return
(valid_);
110
}
111
112
private
:
113
114
//_
115
std::vector<double> u_;
116
117
//_
118
double
c_;
119
120
//_
121
double
cd_;
122
123
//_
124
double
cm_;
125
126
//_
127
int
i97_;
128
129
//_
130
int
j97_;
131
132
//_
133
bool
valid_;
134
135
136
};
137
}
138
139
#endif // BALL_MATHS_RANDOMNUMBERGENERATOR_H
140
BALL::RandomNumberGenerator
Definition:
randomNumberGenerator.h:63
BALL_DEPRECATED
#define BALL_DEPRECATED
Definition:
COMMON/global.h:66
BALL
-*- Mode: C++; tab-width: 2; -*-
Definition:
constants.h:12
global.h
BALL::RandomNumberGenerator::isValid
bool isValid() const
Definition:
randomNumberGenerator.h:106
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
Generated by
1.8.13