Ejemplo n.º 1
0
        public static Analizator random()
        {
            List <SNeuron>         sensors    = new List <SNeuron>();
            List <List <ANeuron> > associates = new List <List <ANeuron> >();
            RNeuron summator = new RNeuron();

            Random random = new Random();

            for (int i = 0; i < width * height; i++)
            {
                sensors.Add(new SNeuron());
            }



            for (int j = 0; j < 33; j++)
            {
                associates.Add(new List <ANeuron>());
                for (int i = 0; i < width * height; i++)
                {
                    associates[j].Add(new ANeuron(0));
                }
            }

            return(new Analizator(sensors, associates, summator));
        }
Ejemplo n.º 2
0
        public void randomSensorsAndSummator()
        {
            summator = new RNeuron();


            sensors = new List <SNeuron>();
            for (int i = 0; i < width * height; i++)
            {
                sensors.Add(new SNeuron());
            }
        }
Ejemplo n.º 3
0
 Analizator(List <SNeuron> sensors, List <List <ANeuron> > associates, RNeuron summator)
 {
     this.sensors    = sensors;
     this.associates = associates;
     this.summator   = summator;
 }