Ejemplo n.º 1
0
        //Thread
        //public Thread mainLoopThread;

        public ModalPx()
        {
            InitializeComponent();

            //Generate the world
            world = new World(worldWidth, worldHeight, shapeCount, orientationVariability);
            world.Randomize(seedsNumber);
            getWorldVisualization();

            //Generate the network
            //1-Areas
            CA3 = MMNodeFactory.obtain(modelUsed);

            //2-Inputs
            LEC_Color = new Signal[retinaSize, retinaSize];
            for (int i = 0; i < retinaSize; i++)
            {
                for (int j = 0; j < retinaSize; j++)
                {
                    LEC_Color[i, j] = new CDZNET.Core.Signal(4, 1);
                    CA3.addModality(LEC_Color[i, j], "Color_" + i + "_" + j);
                }
            }

            //Gui purpose
            ctrlCA3.attach(CA3);
        }
Ejemplo n.º 2
0
        //Thread
        //public Thread mainLoopThread;

        public MainWindow()
        {
            InitializeComponent();

            //Generate the world
            world = new World(worldWidth, worldHeight, shapeCount, orientationVariability);
            world.Randomize(seedsNumber);
            getWorldVisualization();

            //Generate the network
            //1-Inputs
            LEC_Color       = new CDZNET.Core.Signal(retinaSize * 4, retinaSize);  //Visual matrix (RED=0001 / BLUE=0010 / GREEN=0100 / YELLOW=1000)
            LEC_Orientation = new CDZNET.Core.Signal(retinaSize * 2, retinaSize);  //Visual matrix (an orientation is encoded on 2 bits)
            LEC_Shape       = new CDZNET.Core.Signal(retinaSize, retinaSize);      //Visual matrix
            MEC             = new CDZNET.Core.Signal(worldWidth + worldHeight, 1); //Proprioception/Grid Cells

            //2-Areas
            CA3 = MMNodeFactory.obtain(modelUsed);

            //Define which signal will enter CA3
            CA3.addModality(LEC_Color, "Color");
            CA3.addModality(LEC_Orientation, "Orientation");
            //CA3.addModality(LEC_Shape, "Shape");
            CA3.addModality(MEC, "XY");

            //Gui purpose
            ctrlCA3.attach(CA3);

            //mainLoopThread = new Thread(mainLoop);
            //mainLoopThread.Start();
        }
Ejemplo n.º 3
0
        //Thread
        //public Thread mainLoopThread;

        public Saccades()
        {
            InitializeComponent();

            //Generate the world
            world = new World(worldWidth, worldHeight, shapeCount, orientationVariability);
            world.Randomize(seedsNumber);
            getWorldVisualization();

            //Generate the network
            //1-Inputs
            LEC_ColorT0 = new CDZNET.Core.Signal(retinaSize * 4, retinaSize); //Visual matrix (RED=0001 / BLUE=0010 / GREEN=0100 / YELLOW=1000)
            LEC_ColorT1 = new CDZNET.Core.Signal(retinaSize * 4, retinaSize); //Visual matrix (RED=0001 / BLUE=0010 / GREEN=0100 / YELLOW=1000)

            MEC = new CDZNET.Core.Signal(4, 1);
            //dX dY
            //Right = 0 1 0 0
            //Left  = 1 0 0 0
            //Up    = 0 0 0 1
            //Down  = 0 0 1 0

            //2-Areas
            CA3 = MMNodeFactory.obtain(modelUsed);

            //Define which signal will enter CA3
            CA3.addModality(LEC_ColorT0, "ColorT0");
            CA3.addModality(LEC_ColorT1, "ColorT1");
            //CA3.addModality(LEC_Shape, "Shape");
            CA3.addModality(MEC, "dXdY");

            //Gui purpose
            ctrlCA3.attach(CA3);

            //mainLoopThread = new Thread(mainLoop);
            //mainLoopThread.Start();
        }