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