1 namespace SpikingNeuronNetwork.Lib
14 public int InputNeuronIndex {
get; set; }
22 public int OutputNeuronIndex {
get; set; }
29 public Synapse(
int inputNeuronIndex,
int outputNeuronIndex)
31 InputNeuronIndex = inputNeuronIndex;
32 OutputNeuronIndex = outputNeuronIndex;
43 return "(" + InputNeuronIndex +
"->" + OutputNeuronIndex +
")";
51 public override bool Equals(
object obj)
53 if (ReferenceEquals(null, obj))
return false;
54 if (ReferenceEquals(
this, obj))
return true;
55 if (obj.GetType() != GetType())
return false;
56 return ((
Synapse)obj).InputNeuronIndex == InputNeuronIndex && ((
Synapse)obj).OutputNeuronIndex == OutputNeuronIndex;
67 return (InputNeuronIndex * 397) ^ OutputNeuronIndex;
override int GetHashCode()
Returns a hash code representing the synapse
override string ToString()
Returns a System.String that represents this instance.
Synapse(int inputNeuronIndex, int outputNeuronIndex)
Creates a new instance of the synapse class
override bool Equals(object obj)
Returns a bool indicating whether the synapse is equal to an object