Ejemplo n.º 1
0
        public Neuron(ObservablePoint obsPoint)
        {
            this.X = obsPoint.X;
            this.Y = obsPoint.Y;

            neighbours = new List <Neuron>();
        }
Ejemplo n.º 2
0
        public double DistanceCalculation(CenterPoint cntPoint, ObservablePoint obsPoint)
        {
            double distance = 0;

            distance = Math.Sqrt(Math.Pow((cntPoint.X - obsPoint.X), 2) + Math.Pow((cntPoint.Y - obsPoint.Y), 2));

            return(distance);
        }
Ejemplo n.º 3
0
        public CenterPoint(ObservablePoint obsPoint)
        {
            this.X = obsPoint.X;
            this.Y = obsPoint.Y;

            listOfObsPoint = new List <ObservablePoint>();

            PrevAvgX = 0;
            PrevAvgY = 0;
        }