Пример #1
0
 /// <summary>
 /// Updates statistics
 /// </summary>
 /// <param name="iStimuli">Incoming stimulation related to part coming from connected Input neurons</param>
 /// <param name="rStimuli">Incoming stimulation related to part coming from connected reservoir's neurons</param>
 /// <param name="tStimuli">Incoming stimulation (all components together including Bias)</param>
 /// <param name="activationState">Neuron's activation state</param>
 /// <param name="analogSignal">Neuron's output analog signal</param>
 /// <param name="spike">Neuron's output spike signal</param>
 public void Update(double iStimuli, double rStimuli, double tStimuli, double activationState, double analogSignal, double spike)
 {
     InputStimuliStat.AddSampleValue(iStimuli);
     ReservoirStimuliStat.AddSampleValue(rStimuli);
     TotalStimuliStat.AddSampleValue(tStimuli);
     ActivationStat.AddSampleValue(activationState);
     AnalogSignalStat.AddSampleValue(analogSignal);
     FiringStat.AddSampleValue(spike);
     return;
 }
Пример #2
0
 //Methods
 /// <summary>
 /// Resets all statistics
 /// </summary>
 public void Reset()
 {
     InputStimuliStat.Reset();
     ReservoirStimuliStat.Reset();
     TotalStimuliStat.Reset();
     ActivationStat.Reset();
     AnalogSignalStat.Reset();
     FiringStat.Reset();
     return;
 }