コード例 #1
0
        private static void SignMatrixPermutation()
        {
            Console.WriteLine("How many dimensions are we working with?");
            int n = Int32.Parse(Console.ReadLine());

            Console.WriteLine("How big is the sample size?");
            long sampleSize = Int64.Parse(Console.ReadLine());

            PluckerSignMatrixDistribution p = new PluckerSignMatrixDistribution(sampleSize, n);

            p.saveToHtmlPermutations("experiment3.html");
            Console.WriteLine("DONE");
        }
コード例 #2
0
        /*
         * private static void ReducedSignMatrixDistribution()
         * {
         *  Console.WriteLine("How many dimensions are we working with?");
         *  int n = Int32.Parse(Console.ReadLine());
         *
         *  Console.WriteLine("How big is the sample size?");
         *  long sampleSize = Int64.Parse(Console.ReadLine());
         *
         *  ReducedPluckerSignMatrixDistribution p = new ReducedPluckerSignMatrixDistribution(sampleSize, n);
         *  Console.WriteLine("Even number of signs means convex: " + p.testEvenSignsHypothesis());
         *  p.saveToHtmlDistribution("experiment3.html");
         *  Console.WriteLine("DONE");
         * }*/
        private static void SignMatrixDistribution()
        {
            Console.WriteLine("How many dimensions are we working with?");
            int n = Int32.Parse(Console.ReadLine());

            Console.WriteLine("How big is the sample size?");
            long sampleSize = Int64.Parse(Console.ReadLine());

            PluckerSignMatrixDistribution p = new PluckerSignMatrixDistribution(sampleSize, n);

            Console.WriteLine("Even number of signs means convex: " + p.testEvenSignsHypothesis());
            p.saveFullToHtml("experiment3.html");
            Console.WriteLine("DONE");
        }