public static Statistics.Summary[] SummariseRows(this Matrix matrix)
        {
            var summaries = new Statistics.Summary[matrix.Rows];

            for (var i = 0; i < matrix.Rows; ++i)
            {
                summaries[i] = matrix.EnumerateRow(i).Summarise();
            }
            return(summaries);
        }
        public static Statistics.Summary[] SummariseColumns(this Matrix matrix)
        {
            //var cols = matrix.Columns;
            var summaries = new Statistics.Summary[matrix.Columns];

            for (var i = 0; i < matrix.Columns; ++i)
            {
                summaries[i] = matrix.EnumerateColumn(i).Summarise();
            }
            return(summaries);
        }