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

            s.Name = s1;
            return(s);
        }
Beispiel #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();
 }
Beispiel #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;
 }