SCIRun
5.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Core
Math
MusilRNG.h
Go to the documentation of this file.
1
/*
2
For more information, please see: http://software.sci.utah.edu
3
4
The MIT License
5
6
Copyright (c) 2009 Scientific Computing and Imaging Institute,
7
University of Utah.
8
9
10
Permission is hereby granted, free of charge, to any person obtaining a
11
copy of this software and associated documentation files (the "Software"),
12
to deal in the Software without restriction, including without limitation
13
the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
and/or sell copies of the Software, and to permit persons to whom the
15
Software is furnished to do so, subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included
18
in all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
DEALINGS IN THE SOFTWARE.
27
*/
28
29
30
31
///
32
///@class MusilRNG
33
///@brief Musil random number generator
34
///
35
///@author
36
/// Steve Parker
37
/// Department of Computer Science
38
/// University of Utah
39
///
40
///@date November 1994
41
///
42
43
44
#ifndef sci_Math_MusilRNG_h
45
#define sci_Math_MusilRNG_h 1
46
47
#include <
Core/Math/share.h
>
48
49
class
SCISHARE
MusilRNG
{
50
int
n
[16];
51
int
stab[2][32];
52
int
point;
53
int
d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12;
54
int
a1,b1;
55
int
a2,b2;
56
int
a3,b3;
57
int
a4,b4;
58
int
a5,b5;
59
int
a6,b6;
60
int
a7,b7;
61
int
a8,b8;
62
int
a9,b9;
63
int
a10,b10;
64
int
a11,b11;
65
int
a12,b12;
66
public
:
67
MusilRNG
(
int
seed = 0 );
68
double
operator()();
69
};
70
71
#endif
SCISHARE
#define SCISHARE
Definition:
share.h:39
share.h
MusilRNG
Musil random number generator.
Definition:
MusilRNG.h:49
eab.n
int n
Definition:
eab.py:9
Generated on Wed Jul 9 2014 14:31:48 for SCIRun by
1.8.5