24 #ifndef SOM_INITFUNC_H 25 #define SOM_INITFUNC_H 43 std::random_device rd;
44 std::mt19937 gen(rd());
45 std::normal_distribution<> d(mu,sigma);
46 return [gen, d]()
mutable {
52 std::uniform_real_distribution<double> unif(min, max);
53 std::default_random_engine re;
54 return [unif, re]()
mutable {
Signature uniformRandom(double min, double max)
Signature normalDistribution(double sigma, double mu)
std::function< double()> Signature