Median in GGB

carstenv@gmail.com shared this question 7 years ago
Answered

I think the median in GGB is defined as: "If the length of the given list is even, the arithmetic mean of the two center elements is returned."


Is it possible to choose another definition such as "If the length of the given list is even, the smallest of the two center elements is returned."

Comments (1)

photo
1

    Element[Sort[List1], Length[List1] / 2]

(This code also works if the length is odd.)


Regards Abakus

© 2022 International GeoGebra Institute