1 namespace SpikingNeuronNetwork.Lib
3 using System.Collections.Generic;
18 public int Id {
get; set; }
26 public List<Spike> InputSpikes {
get; set; }
34 public List<Spike> OutputSpikes {
get; set; }
43 var spikeStringBuilder =
new StringBuilder();
44 spikes.ToList().ForEach(x => spikeStringBuilder.AppendLine(
"\t" + x.Time +
"(Neuron: " + x.NeuronIndex +
")"));
45 return spikeStringBuilder.ToString();
56 return "Input Spikes:\n" + GetSpikeTimesString(InputSpikes) +
"Output Spikes:\n" + GetSpikeTimesString(OutputSpikes);
static string GetSpikeTimesString(IEnumerable< Spike > spikes)
Gets the spike times string.
override string ToString()
Returns a System.String that represents this instance.