Template Class NormalInitializer
Defined in File NormalInitializer.h
Inheritance Relationships
Base Type
public EvSpikeSim::Initializer(Class Initializer)
Class Documentation
-
template<class Generator>
class NormalInitializer : public EvSpikeSim::Initializer Initializer that initializes with a normal distribution.
- Template Parameters
Generator – Type of the random engine. It is compatible with random engine in standard library.
Public Functions
-
inline explicit NormalInitializer(Generator &generator, float mean = 0.0f, float stddev = 1.0f)
Constructs the initializer with the given random generator, mean and standard deviation.
- Parameters
generator – Random engine.
mean – Mean of the normal distribution.
stddev – Standard deviation of the normal distribution.
-
inline virtual float operator()() override
Call operator that generates values for weights initialization.
- Returns
A new value following a normal distribution.