Add confidence interval
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
705d811832
commit
f1bfc9fec0
@ -25,14 +25,12 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"></td>
|
||||
<td colspan="4" *ngIf="showConfidenceInterval()"> </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>-->
|
||||
<tr *ngIf="showConfidenceInterval()">
|
||||
<td colspan="4" i18n>Confidence interval:{{layer.renderer.band.histogram.confidence * 100| number:'1.0-0'}} </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -22,7 +22,8 @@ export interface IHistogram {
|
||||
mean: number,
|
||||
stddev: number,
|
||||
classes: number,
|
||||
entries: IHistogramEntry[]
|
||||
entries: IHistogramEntry[],
|
||||
confidence?: number;
|
||||
}
|
||||
|
||||
export interface IGradientstop {
|
||||
|
Loading…
Reference in New Issue
Block a user