NEURON
Rand.cpp
Go to the documentation of this file.
1
#include "
Rand.hpp
"
2
3
#include "
NrnRandom123RNG.hpp
"
4
#include "
Normal.h
"
5
6
Rand::Rand
(
unsigned
long
seed,
int
size,
Object
* obj) {
7
// printf("Rand\n");
8
gen
=
new
NrnRandom123
(seed, size);
9
rand
=
new
Normal
(0., 1.,
gen
);
10
type_
= 4;
11
obj_
= obj;
12
}
13
14
Rand::~Rand
() {
15
// printf("~Rand\n");
16
delete
gen
;
17
delete
rand
;
18
}
19
Normal.h
NrnRandom123RNG.hpp
Rand.hpp
Normal
Definition:
Normal.h:21
NrnRandom123
Definition:
NrnRandom123RNG.hpp:8
Rand::~Rand
~Rand()
Definition:
Rand.cpp:14
Rand::rand
Random * rand
Definition:
Rand.hpp:20
Rand::type_
int type_
Definition:
Rand.hpp:21
Rand::obj_
Object * obj_
Definition:
Rand.hpp:23
Rand::Rand
Rand(unsigned long seed=0, int size=55, Object *obj=nullptr)
Definition:
Rand.cpp:6
Rand::gen
RNG * gen
Definition:
Rand.hpp:19
Object
Definition:
hocdec.h:173
src
gnu
Rand.cpp