Updated statistics confidence interval.
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Mark van der Wal 2020-08-06 12:04:56 +02:00
parent 1d2caa0fe3
commit c028adfb77
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<div class="row pl-3"> <div class="row pl-3">
<div class="col-8 nopadding" i18n>Data points<span>:</span></div> <div class="col-8 nopadding" i18n>Data points<span>:</span></div>
<div class="col-4 pull-left nopadding">{{statistics.populationCount| number:'1.0-0'}}</div> <div class="col-4 pull-left nopadding">{{statistics.populationCount}}</div>
<div class="col-8 nopadding" i18n>Min<span>:</span></div> <div class="col-8 nopadding" i18n>Min<span>:</span></div>
<div class="col-4 pull-left nopadding">{{statistics.min| number:'1.0-2'}}</div> <div class="col-4 pull-left nopadding">{{statistics.min| number:'1.0-2'}}</div>
<div class="col-8 nopadding" i18n>Max<span>:</span></div> <div class="col-8 nopadding" i18n>Max<span>:</span></div>
@ -28,7 +28,9 @@
<div class="col-8 nopadding" i18n>Variance<span>:</span></div> <div class="col-8 nopadding" i18n>Variance<span>:</span></div>
<div class="col-4 pull-left nopadding">{{statistics.variance| number:'1.0-2'}}</div> <div class="col-4 pull-left nopadding">{{statistics.variance| number:'1.0-2'}}</div>
<div class="col-8 nopadding" i18n>Coefficient of variation<span>:</span></div> <div class="col-8 nopadding" i18n>Coefficient of variation<span>:</span></div>
<div class="col-4 pull-left nopadding">{{statistics.variationCoefficient| number:'1.0-2'}}</div> <div class="col-4 pull-left nopadding">{{statistics.variationCoefficient | number:'1.0-2'}}</div>
<div class="col-8 nopadding" i18n>Confidence interval<span>:</span></div> <ng-container *ngIf="statistics.confidenceIntervalLow !== undefined">
<div class="col-4 pull-left nopadding">{{statistics.confidenceInterval| number:'1.0-2'}}</div> <div class="col-8 nopadding">90% <span i18n>Confidence interval</span><span>:</span></div>
<div class="col-4 pull-left nopadding">{{statistics.confidenceIntervalLow | number:'1.0-2'}} - {{statistics.confidenceIntervalHigh | number:'1.0-2'}}</div>
</ng-container>
</div> </div>

View File

@ -42,7 +42,9 @@ export interface IStatistics {
skewness: number; skewness: number;
variance: number; variance: number;
variationCoefficient: number; variationCoefficient: number;
confidenceInterval: number; confidenceIntervalErrorMargin: number;
confidenceIntervalLow: number;
confidenceIntervalHigh: number;
} }
export interface IGradientstop { export interface IGradientstop {