Beispiel #1
0
        void MainUI(DataClass dc, _4lab FLab, _5lab FFLab)
        {
            while (true)
            {
                Console.WriteLine("1. Primary statistical analysis");
                Console.WriteLine("2. Correlation/regression");
                Console.WriteLine("------------------------------");

                int i = int.Parse(Console.ReadLine());
                switch (i)
                {
                case 1:
                    _4lab_UI(FLab, dc);
                    break;

                case 2:
                    _5lab_UI(FFLab, dc);
                    break;

                case 3:
                    dc.Serialize();
                    break;

                default:
                    break;
                }
            }
        }
Beispiel #2
0
        private void _5lab_UI2(List <double> x, _5lab FFlab, DataClass dc)
        {
            Console.WriteLine("What indirect metric?");
            Console.WriteLine("1.  WMC");
            Console.WriteLine("2.  NOAV");
            Console.WriteLine("3.  NOPA");
            Console.WriteLine("4.  TCC");
            Console.WriteLine("5.  PNAS");
            int i = int.Parse(Console.ReadLine());

            switch (i)
            {
            case 1:
                FFlab.UI(x, dc.WMC);
                break;

            case 2:
                FFlab.UI(x, dc.NOAV);
                break;

            case 3:
                FFlab.UI(x, dc.NOPA);
                break;

            case 4:
                FFlab.UI(x, dc.TCC);
                break;

            case 5:
                FFlab.UI(x, dc.PNAS);
                break;

            default:
                break;
            }
        }
Beispiel #3
0
        private void _5lab_UI(_5lab FFLab, DataClass dc)
        {
            Console.WriteLine("What direct metrics?");
            Console.WriteLine("1.  NOP");
            Console.WriteLine("2.  NOM");
            Console.WriteLine("3.  NOC");
            Console.WriteLine("4.  CALL");
            Console.WriteLine("5.  NDD");
            int i = int.Parse(Console.ReadLine());

            switch (i)
            {
            case 1:
                _5lab_UI2(dc.NOP, FFLab, dc);
                break;

            case 2:
                _5lab_UI2(dc.NOM, FFLab, dc);
                break;

            case 3:
                _5lab_UI2(dc.NOC, FFLab, dc);
                break;

            case 4:
                _5lab_UI2(dc.CALL, FFLab, dc);
                break;

            case 5:
                _5lab_UI2(dc.NDD, FFLab, dc);
                break;

            default:
                break;
            }
        }
Beispiel #4
0
 public Program(DataClass dc, _4lab FLab, _5lab FFLab)
 {
     MainUI(dc, FLab, FFLab);
 }