also use scale for histogram
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit

This commit is contained in:
2023-11-23 21:13:44 +01:00
parent 127dc44917
commit 8e304fc6eb
3 changed files with 17 additions and 6 deletions

View File

@@ -14,6 +14,17 @@ export class HistogramDetailsComponent {
@Input()
histogram: IHistogram;
@Input()
scale: number | null;
public getScaledValue(value: number): number {
let v = value;
if (this.scale && this.scale != 0) {
v = this.scale * value;
}
return v;
}
showConfidenceInterval(): boolean {
return this.histogram.confidence != null && this.histogram.confidence !== 1;
}