Beispiel #1
0
        public AnimatedState(Synapse synapse, AnimatedVector vector, bool duplex = false)
        {
            this.synapse = synapse;
            this.vector  = vector;
            this.duplex  = duplex;

            radius  = Constant.Radius / 2;
            history = new List <CreationData>();
        }
Beispiel #2
0
        public AnimatedSynapse(AnimatedNeuron pre, AnimatedNeuron post, Synapse syn)
        {
            this.pre  = pre;
            this.post = post;

            duplex  = null;
            vector  = new AnimatedVector(pre, post);
            synapse = new AnimatedState(syn, vector);

            pre.Output.Add(this);
            post.Input.Add(this);

            changePosition();
        }