public Synapse GetSynapse(String s1) { Synapse s = synapses; s.Name = s1; return(s); }
public Brain() { anchor_neurons = new List <Neuron>(); neurons = new NeuronPool(this); synapses = new SynapsePool(this); _default_neuron = new Neuron(); _default_synapse = new Synapse(); }
void Init(Brain b, Synapse _default) { brain = b; if (_default == null) { _gain = 1024; } else { Synapse s = _default; _gain = s._gain; } this.cycle = 0; }