Template Class NormalInitializer

Inheritance Relationships

Base Type

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.