コード例 #1
0
        public void StatZScoreTest()
        {
            int[] values = { 3, 4, 5 };
            int   score  = 2;
            var   zScore = StatsZScore.StatZScore(score, values);

            Assert.AreEqual(-2.44949, Helpers.Rounding.RoundFiveDecimals(zScore));
        }
コード例 #2
0
        public void ZScoreDoubleTest()
        {
            double[] values = { 1.1, 2.2, 3.3, 4.4, 5.5 };
            double   score  = 2.2;
            var      zScore = StatsZScore.StatZScore(score, values);

            Assert.AreEqual(-0.77782, Helpers.Rounding.RoundFiveDecimals(zScore));
        }
コード例 #3
0
 public double StatZScore(dynamic score, dynamic values)
 {
     result = StatsZScore.StatZScore(score, values);
     return(result);
 }