Accord.Tests.Statistics.CircularDescriptiveAnalysisTest.DescriptiveAnalysis_InPlaceRow C# (CSharp) Method

DescriptiveAnalysis_InPlaceRow() private method

private DescriptiveAnalysis_InPlaceRow ( ) : void
return void
        public void DescriptiveAnalysis_InPlaceRow()
        {
            double[,] data =
            {
                // hours  minutes        weekedays
                {    7,    52,     (int)DayOfWeek.Monday   },
                {    3,    12,     (int)DayOfWeek.Friday   },
                {   23,    12,     (int)DayOfWeek.Thursday },
                {   21,    42,     (int)DayOfWeek.Saturday },
                {    5,    13,     (int)DayOfWeek.Friday   },
                {   15,    16,     (int)DayOfWeek.Saturday },
                {    6,     8,     (int)DayOfWeek.Sunday   },
                {    8,    22,     (int)DayOfWeek.Friday   },
            };

            double[] lengths = { 24 };
            double[] row = data.GetColumn(0);

            double[] original = data.GetColumn(0);

            // Create the analysis
            var analysis = new CircularDescriptiveAnalysis(row, 24, "Hours", inPlace: true);

            // Compute
            analysis.Compute();

            testOne(analysis, original, 24);

            Assert.AreSame(row, analysis.Angles[0]);
        }