core/src/main/java/org/apache/commons/functor/aggregator/functions/DoubleMedianValueAggregatorFunction.java [104:119]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Collections.sort(copy);
        int n = copy.size();
        int middle = n / 2;
        if (n % 2 == 0) {
            // need to compute the mean of middle and middle-1 (zero based
            // index!)
            return (copy.get(middle) + copy.get(middle - 1)) / 2;
        }

        // we're already positioned on the element in the middle so just return
        // it
        return copy.get(middle);
    }

    @Override
    public String toString() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core/src/main/java/org/apache/commons/functor/aggregator/functions/IntegerMedianValueAggregatorFunction.java [104:119]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Collections.sort(copy);
        int n = copy.size();
        int middle = n / 2;
        if (n % 2 == 0) {
            // need to compute the mean of middle and middle-1 (zero based
            // index!)
            return (copy.get(middle) + copy.get(middle - 1)) / 2;
        }

        // we're already positioned on the element in the middle so just return
        // it
        return copy.get(middle);
    }

    @Override
    public String toString() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



