-
Notifications
You must be signed in to change notification settings - Fork 1
Max_elem
mtbeek32 edited this page Jan 31, 2024
·
15 revisions
Ordering functions maximum element
- max_elem(a, b, .. , n)
max_elem(a, b, .. , n) results in a data item with the highest 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 the 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> max_elemABC (MDomain) := max_elem(A, B, C);
A(int32) | B(int32) | C(int32) | max_elemABC |
---|---|---|---|
0 | 1 | 2 | 2 |
1 | -1 | 4 | 4 |
-2 | 2 | 2 | 2 |
4 | 0 | 7 | 7 |
999 | 111 | -5 | 999 |
2 | null | 1 | 0 |
0 | 1 | null | 0 |
null | 1 | 2 | 0 |
null | null | null | null |
MDomain, nr of rows = 9
In earlier versions (before 7.202) a null value in one of the arguments could result in a null value of the resulting data item. This now only occurs if all arguments have null values.
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.