Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | mathematics |
data | The array to search | ||
min_location | Position of the minimum value | ||
max_location | Position of the maximum value | ||
mask | If set, only consider locations where mask==True | ||
Allowed: | bool array | ||
Default: | null |
- include "statistics.g" - r := range\_with\_location([1:5], minloc, maxloc) - print r, minloc, maxloc [1 5] 1 5 - r := range_with_location([1:5], minloc, maxloc, [F,T,T,T,F]) - print r, minloc, maxloc [2 4] 2 4