From c028adfb77c280cee29fefa4fc4ce7cffa51f5c9 Mon Sep 17 00:00:00 2001 From: Mark van der Wal Date: Thu, 6 Aug 2020 12:04:56 +0200 Subject: [PATCH] Updated statistics confidence interval. --- .../statistics-details.component.html | 10 ++++++---- projects/common-map/src/fm-map/models/color.map.ts | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html b/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html index bbd2f31..b9885f5 100644 --- a/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html +++ b/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html @@ -1,6 +1,6 @@
Data points:
-
{{statistics.populationCount| number:'1.0-0'}}
+
{{statistics.populationCount}}
Min:
{{statistics.min| number:'1.0-2'}}
Max:
@@ -28,7 +28,9 @@
Variance:
{{statistics.variance| number:'1.0-2'}}
Coefficient of variation:
-
{{statistics.variationCoefficient| number:'1.0-2'}}
-
Confidence interval:
-
{{statistics.confidenceInterval| number:'1.0-2'}}
+
{{statistics.variationCoefficient | number:'1.0-2'}}
+ +
90% Confidence interval:
+
{{statistics.confidenceIntervalLow | number:'1.0-2'}} - {{statistics.confidenceIntervalHigh | number:'1.0-2'}}
+
diff --git a/projects/common-map/src/fm-map/models/color.map.ts b/projects/common-map/src/fm-map/models/color.map.ts index 30759e4..b7b610e 100644 --- a/projects/common-map/src/fm-map/models/color.map.ts +++ b/projects/common-map/src/fm-map/models/color.map.ts @@ -42,7 +42,9 @@ export interface IStatistics { skewness: number; variance: number; variationCoefficient: number; - confidenceInterval: number; + confidenceIntervalErrorMargin: number; + confidenceIntervalLow: number; + confidenceIntervalHigh: number; } export interface IGradientstop {