From 4454c7a246b681bbdd4f09c7e9725847f85f5e1c Mon Sep 17 00:00:00 2001 From: rakhimov Date: Thu, 19 Jan 2017 12:42:27 -0800 Subject: [PATCH] Add support for reporting histogram (density) This modifies the "quantiles" schema to support bins similar to the MEF input. The distribution/frequency of the data is meant to be in the histogram as a statistical measure for reporting. It would be somewhat beneficial if histogram reporting schema matched exactly the input histogram-distribution (deviate) schema since the semantics is the same. --- mef/schema/statistical_measure.rnc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mef/schema/statistical_measure.rnc b/mef/schema/statistical_measure.rnc index efb60d4..8326bc1 100644 --- a/mef/schema/statistical_measure.rnc +++ b/mef/schema/statistical_measure.rnc @@ -24,6 +24,7 @@ statistical-measure = } }?, quantiles?, + histogram?, } quantiles = @@ -34,8 +35,16 @@ quantiles = quantile = element quantile { bin-data } +histogram = + element histogram { + attribute number { xsd:positiveInteger }, + bin+ + } + +bin = element bin { bin-data } + bin-data = attribute number { xsd:positiveInteger }, - attribute mean { xsd:double }?, + attribute value { xsd:double }?, attribute lower-bound { xsd:double }?, attribute upper-bound { xsd:double }?