58 Vose(std::vector<double_t> dist);
size_t index
Unsigned long type for enumerations.
Definition: nest.h:109
double_t probability
Probability for heads.
Definition: vose.h:48
Vose(std::vector< double_t > dist)
Constructor taking a probability distribution.
Definition: vose.cpp:29
Vose's alias method for selecting a random number using a discrete probability distribution.
Definition: vose.h:41
BiasedCoin()
Definition: vose.h:49
const Name h("h")
Summed input to a neuron (Ginzburg neuron)
Definition: nest_names.h:158
index heads
Definition: vose.h:47
index tails
Definition: vose.h:47
index get_random_id(librandom::RngPtr rng) const
Definition: vose.cpp:81
BiasedCoin(index h, index t, double_t p)
Definition: vose.h:50
double double_t
Double precision floating point numbers.
Definition: nest.h:93
Default types used by the NEST kernel.
An object containing two possible outcomes and a probability to choose between the two...
Definition: vose.h:46
const Name p("p")
current release probability (Tsodyks2_connection)
Definition: nest_names.h:218
std::vector< BiasedCoin > dist_
Definition: vose.h:66