コード例 #1
0
        int bias;         // offset of 0 ... min and max still relative to 0

        void Init(Brain brain, Neuron _default)
        {
            //connections = new List<Synapse>();
            this.brain = brain;
            if (_default == null)
            {
                _min  = -1024;
                _max  = 1024;
                logic = new NeuronLogic(NeuronLogic.Algorithm.analog);
                //_algorithm = Algorithm.analog;
                _threshold = 0;
            }
            else
            {
                _min       = _default.min;
                _max       = _default.max;
                logic      = new NeuronLogic(NeuronLogic.Algorithm.analog);
                _threshold = _default.threshold;
            }
        }
コード例 #2
0
 public NeuronProperties(Neuron n)
 {
     _neuron  = n;
     original = n.Logic;
     InitializeComponent();
 }