Taito pääsisältöön

//ERDDAP/com.cohort.util/ScriptMath2/suggestLowHigh

suggestLowHigh

[JVM]
open fun suggestLowHigh(low: Double, high: Double): Array<Double>

This returns a nice bounding range (e.g., for an axis) which includes low and high.

Return

returnLowHigh an array with 2 elements. The resulting bounds are stored as [0]=low and [1]=high. If low and high are not finite, this returns 0,1. In all other cases, this returns an appropriate wider range.

Parameters

JVM

lowthe low end of the range
highthe high end of the range