Example #1
0
        public void Before()
        {
            TuringMachineProperties props = new TuringMachineProperties
            {
                M           = 5,
                N           = -1,
                ShiftLength = 3,
                ShiftMode   = ShiftMode.Multiple,
                Enabled     = true,
                Heads       = 1
            };
            int           vectorSize        = 2;
            int           startAndDelimiter = 2;
            int           interp            = 1;
            int           contentJump       = 1;
            int           shift             = 3;
            BlackBoxDummy blackBoxDummy     = new BlackBoxDummy(vectorSize + startAndDelimiter + props.M,             // input 4 environment + 5 turing machine = 9
                                                                vectorSize + props.M + interp + contentJump + shift); // output = 2 environment + 10 turing machine = 12

            double[][] outputValues =
            {
                new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }
            };
            _controller         = new TuringController(props);
            _controller.Phenome = blackBoxDummy;
        }
        public void Before()
        {
            TuringMachineProperties props = new TuringMachineProperties
            {
                M           = 2,
                N           = -1,
                ShiftLength = 3,
                ShiftMode   = ShiftMode.Multiple,
                Enabled     = true,
                Heads       = 1
            };

            _tm = new MinimalTuringMachine(props);
        }