Ejemplo n.º 1
0
        public void PopCorrelationTest()
        {
            double[] DataPointsX = { 1, 2, 3, 4, 5 };
            double[] DataPointsY = { 11, 22, 34, 43, 56 };

            var result = statsCalc.PopCoefficient(DataPointsX, DataPointsY);

            Assert.AreEqual(0.7991887154553378, result);
        }
Ejemplo n.º 2
0
        public void PopCorrelationTest()
        {
            double[]         DataPointsX = { 1, 2, 3, 4, 5 };
            double[]         DataPointsY = { 11, 22, 34, 43, 56 };
            DescriptiveStats statsCalc   = new DescriptiveStats();
            var result = statsCalc.PopCoefficient(DataPointsX, DataPointsY);

            Assert.AreEqual(0.7991248857909374, result);
        }