예제 #1
0
 /// <summary>
 /// Prepares and stores transmission signal
 /// </summary>
 public void PrepareTransmissionSignal()
 {
     _transmissionSignal = _signal;
     TransmissionSignalStat.AddSampleValue(_transmissionSignal);
     TransmissionFreqStat.AddSampleValue((_transmissionSignal == 0) ? 0 : 1);
     return;
 }
예제 #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;
 }
예제 #3
0
 /// <summary>
 /// Computes the neuron.
 /// </summary>
 /// <param name="stimuli">Input stimulation</param>
 /// <param name="collectStatistics">Specifies whether to update internal statistics</param>
 public void Compute(double stimuli, bool collectStatistics)
 {
     stimuli = stimuli.Bound();
     if (collectStatistics)
     {
         StimuliStat.AddSampleValue(stimuli);
     }
     _signal = stimuli;
     TransmissionFreqStat.AddSampleValue((_signal == 0) ? 0 : 1);
     return;
 }