Add confidence interval
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Willem Dantuma 2020-05-26 17:19:07 +02:00
parent 705d811832
commit f1bfc9fec0
3 changed files with 12 additions and 9 deletions

View File

@ -25,14 +25,12 @@
</td>
</tr>
<tr>
<td colspan="4"></td>
</tr>
<!--<tr *ngIf="layer.renderer.colorMap.entries.length > 0">
<td>
<i title="Show histogram" class="fa fa-bar-chart fa-rotate-90" (click)="onClickHistoGram()"></i>
</td>
<td colspan="3"></td>
</tr>-->
<td colspan="4" *ngIf="showConfidenceInterval()"> </td>
</tr>
<tr *ngIf="showConfidenceInterval()">
<td colspan="4" i18n>Confidence interval:{{layer.renderer.band.histogram.confidence * 100| number:'1.0-0'}} </td>
</tr>
</table>

View File

@ -86,6 +86,10 @@ export class LegendComponent implements OnInit,AfterViewInit {
showHistogram(): boolean {
return this.histogramenabled && this.layer.renderer.band.histogram.entries && this.layer.renderer.band.histogram.entries.length > 0 && this.layer.renderer.colorMap.colormapType == "minmax";
}
showConfidenceInterval():boolean {
return this.histogramenabled && this.layer.renderer.band.histogram.confidence != null && this.layer.renderer.band.histogram.confidence != 1;
}
}

View File

@ -22,7 +22,8 @@ export interface IHistogram {
mean: number,
stddev: number,
classes: number,
entries: IHistogramEntry[]
entries: IHistogramEntry[],
confidence?: number;
}
export interface IGradientstop {