Min_elem - ObjectVision/GeoDMS GitHub Wiki
Ordering functions minimum element
- min_elem(a, b, .. , n)
min_elem(a, b, .. , n) results in a data item with the lowest value of the arguments in the element-by-element comparison.
The domain unit of the resulting item is the same as the domain units of all arguments of the function.
The values unit of the resulting item is the values unit of all arguments of the function.
Data items with Numeric or string value type
- Domain of the arguments must match or be void.
- Arguments must have matching:
attribute<uint32> min_elemABC (MDomain) := min_elem(A, B, C);
| A(int32) | B(int32) | C(int32) | min_elemABC |
|---|---|---|---|
| 0 | 1 | 2 | 0 |
| 1 | -1 | 4 | -1 |
| -2 | 2 | 2 | -2 |
| 4 | 0 | 7 | 0 |
| 999 | 111 | -5 | -5 |
| 2 | null | 1 | 1 |
| 0 | 1 | null | 0 |
| null | 1 | 2 | 1 |
| null | null | null | null |
MDomain, nr of rows = 9
The result is null only where all arguments are null.