Example #1
0
        public static string MeanAndStdHtmlReport(IEnumerable <Measurement> measurements)
        {
            var meanAndStdHtmlReport = new HtmlReportMaker();

            return(meanAndStdHtmlReport.MakeReport
                       (measurements, meanAndStdHtmlReport.MeanAndStdStatistic, "Mean and Std"));
        }
Example #2
0
        public static string MedianHtmlReport(IEnumerable <Measurement> measurements)
        {
            var medianHtmlReport = new HtmlReportMaker();

            return(medianHtmlReport.MakeReport
                       (measurements, medianHtmlReport.MedianStatistics, "Median"));
        }
Example #3
0
        public static string MakeFirstReport(IEnumerable <Measurement> data)
        {
            var reportMaker = new HtmlReportMaker();

            var content = new ReportContent("Mean and Std");

            foreach (var propertyInfo in typeof(Measurement).GetProperties())
            {
                var name = propertyInfo.Name;
                content.AddItem(new ReportItem(name,
                                               Statistics.DeviationsStat(
                                                   data.Select(z => (double)typeof(Measurement).GetProperty(name).GetValue(z))
                                                   ).ToString()));
            }

            return(reportMaker.MakeReport(content));
        }