Given a finite set of numbers $X =\{1, 2, 3, 4, 5\}$, define the upper half $U = \{4, 5\}$, and the lower half $L = \{1, 2\}$ (We omit $3$/median here if there are odd number of elements in $X$). So $L,U$ is not strictly a partition of $X$. There can be a function defined as $f(X): =\sum_{i \in U} i - \sum_{j \in L} j$.
I'm wondering if there is any name for this kind of function.