GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
gauss.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------
2  Author: Thomas Nowotny
3 
4  Institute: Institute for Nonlinear Dynamics
5  University of California San Diego
6  La Jolla, CA 92093-0402
7 
8  email to: tnowotny@ucsd.edu
9 
10  initial version: 2002-00-08
11 
12 --------------------------------------------------------------------------*/
13 
14 #ifndef GAUSS_H
15 #define GAUSS_H
16 
17 //-----------------------------------------------------------------------
30 //-----------------------------------------------------------------------
31 
32 #include <cmath>
33 #include "randomGen.h"
34 
35 //-----------------------------------------------------------------------
41 //-----------------------------------------------------------------------
42 
44 {
45 private:
47  double s, t, a, b, r1, r2;
48  double u, v;
49  double x, y, q;
50  int done;
51 
52  public:
53  explicit randomGauss();
54  randomGauss(unsigned long, unsigned long, unsigned long);
56  double n();
57  void srand(unsigned long, unsigned long, unsigned long);
58 };
59 
60 #include "randomGen.cc"
61 #include "gauss.cc"
62 
63 #endif
header file containing the class definition for a uniform random generator based on the ISAAC random ...
void srand(unsigned long, unsigned long, unsigned long)
Function for seeding with fixed seeds.
Definition: gauss.cc:98
~randomGauss()
Definition: gauss.h:55
Contains the implementation of the Gaussian random number generator class randomGauss.
double n()
Method for obtaining a random number with Gaussian distribution.
Definition: gauss.cc:75
randomGauss()
Constructor for the Gaussian random number generator class without giving explicit seeds...
Definition: gauss.cc:31
Class random Gauss encapsulates the methods for generating random neumbers with Gaussian distribution...
Definition: gauss.h:43
Contains the implementation of the ISAAC random number generator class for uniformly distributed rand...