示例#1
0
        private TestResult TestRngDistribution <T>(out string message) where T : IRng
        {
            message = string.Empty;
            TestResult testRes = TestResult.Passed;

            double score = RngTesting.DistributionTest <T>();

            Log.Info($"Distribution for {typeof(T).Name} scored {score.ToString("0.00000000")}");

            return(testRes);
        }
示例#2
0
        private TestResult TestRngConfusion <T>(out string message) where T : IRng
        {
            message = string.Empty;
            TestResult testRes = TestResult.Passed;

            float res = RngTesting.ConfusionTest <T>();

            Log.Info($"Confusion for {typeof(T).Name} scored {res.ToString("0.0000")}");

            return(testRes);
        }