Forums > MaxMSP


Dec 23 2011 | 7:50 pm

how would YOU effectively (for realtime applications) calculate the median of a list of numbers?

Dec 23 2011 | 8:11 pm

[zl median] ho ho ho :p

Dec 23 2011 | 9:11 pm

sounds good.

and errm … in max v4?
and i am not sure if that what i am doing since years is right: when the number of elements is even, what do i do:

1.) get the average of the two middle elements
2.) find the average of the whole list and choose one of the middle numbers accorign to where the average lies.


Dec 23 2011 | 10:21 pm

option 1.

first, sort list.

if list length is uneven, take middle element
if list length is even, take average of middle two elements.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP