mode
FEEL built-in function · FEEL list functions
mode(list) or mode(n1, …, nN)
Returns the most frequent value(s) as a list; ties produce several results in ascending order.
Parameters
| Parameter | Type | Description |
|---|---|---|
| list | list of numbers | numbers, as one list or as separate arguments |
Examples
mode(6, 3, 9, 6, 6)
[6]
Try it ↑
mode([6, 1, 9, 6, 1])
[1, 6]
Try it ↑
Edge cases and null handling
Part of FEEL list functions: how positions, nulls and single values behave across all of them, aggregating over lists of contexts, and every function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).