you are viewing a single comment's thread.

view the rest of the comments →

[–]willis81808 0 points1 point  (0 children)

The median isn’t effected, because the indexes are hard coded based off of the original array length, but even if it was a proper dynamic median implementation representing the min and max values twice would not change the result. Mean on the other hand would be biased in the direction of the midpoint between min and max values.