Ejemplo n.º 1
0
 /// <summary>
 /// Prepares and stores transmission signal
 /// </summary>
 public void PrepareTransmissionSignal()
 {
     _transmissionSignal = _signal;
     TransmissionSignalStat.AddSampleValue(_transmissionSignal);
     TransmissionFreqStat.AddSampleValue((_transmissionSignal == 0) ? 0 : 1);
     return;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Prepares and stores transmission signal
 /// </summary>
 public void PrepareTransmissionSignal()
 {
     _transmissionSignal = _spike;
     TransmissionSignalStat.AddSampleValue(_transmissionSignal);
     TransmissionFreqStat.AddSampleValue((_transmissionSignal == 0) ? 0 : 1);
     //Primary readout
     _readout = _firingRate.GetRate();
     return;
 }
Ejemplo n.º 3
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();
         TransmissionSignalStat.Reset();
     }
     return;
 }
Ejemplo n.º 4
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;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Prepares and stores transmission signal
 /// </summary>
 public void PrepareTransmissionSignal()
 {
     _signal = _signalConverter.FetchSpike();
     TransmissionSignalStat.AddSampleValue(_signal);
     return;
 }