public void TestSamplingCor() { double[] datas1 = { 29, 29, 30, 32, 33, 32, 31, 26, 28, 31 }; double[] datas2 = { 326, 364, 283, 369, 417, 436, 438, 296, 263, 389 }; double result = StatUtil.SamplingCor(datas1, datas2); Assert.AreEqual(0.7600, Math.Round(result, 4)); }
public void TestSamplingCorArgumentException() { double[] datas1 = {}; double[] datas2 = {}; StatUtil.SamplingCor(datas1, datas2); }