Example #1
0
 //Methods
 /// <summary>
 /// Resets the neuron to its initial state
 /// </summary>
 /// <param name="resetStatistics">Specifies whether to reset internal statistics</param>
 public void Reset(bool resetStatistics)
 {
     _signal = 0;
     if (resetStatistics)
     {
         StimuliStat.Reset();
     }
     return;
 }
Example #2
0
 //Methods
 /// <summary>
 /// Resets the neuron to its initial state
 /// </summary>
 /// <param name="statistics">Specifies whether to reset also internal statistics</param>
 public void Reset(bool statistics)
 {
     _activation.Reset();
     _state              = 0;
     _rescaledState      = 0;
     _transmissionSignal = 0;
     if (statistics)
     {
         StimuliStat.Reset();
         StatesStat.Reset();
         TransmissionSignalStat.Reset();
         TransmissionFreqStat.Reset();
     }
     return;
 }