Spiking Neuron Network Simulator  1.0
Simulation and training of spiking neuron networks, primarily theta neurons
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
ErrorDerivativeParameters.cs
Go to the documentation of this file.
1 namespace SpikingNeuronNetwork.Lib.Training
2 {
3  using Interfaces;
4  using System.Collections.Generic;
5  using System.Linq;
6 
11  {
15  public Dictionary<int, double> ErrorToOutputSpikeTimeDerivatives { get; set; }
16 
20  public Dictionary<Synapse, double> OutputSpikeTimeToWeightDerivatives { get; set; }
21 
26  {
27  ErrorToOutputSpikeTimeDerivatives = new Dictionary<int, double>();
28  OutputSpikeTimeToWeightDerivatives = new Dictionary<Synapse, double>();
29  }
30 
35  public List<Synapse> GetSynapses()
36  {
37  return OutputSpikeTimeToWeightDerivatives.Keys.ToList();
38  }
39 
45  public double GetErrorDerivative(Synapse synapse)
46  {
47  return ErrorToOutputSpikeTimeDerivatives[synapse.OutputNeuronIndex]*
48  OutputSpikeTimeToWeightDerivatives[synapse];
49  }
50  }
51 }
List< Synapse > GetSynapses()
Gets a list of the synapses for which there are error derivative parameters
ErrorDerivativeParameters()
Creates a new instance of ErrorDerivativeParameters
double GetErrorDerivative(Synapse synapse)
Get the derivate of the error relative change in weight for a certain synapse