Example #1
0
        public Synapse GetSynapse(String s1)
        {
            Synapse s = synapses;

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