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)); }
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)); }
public double StatZScore(dynamic score, dynamic values) { result = StatsZScore.StatZScore(score, values); return(result); }