Is there a Max object to find the mathematical mode of several given values?

Nov 17, 2012 at 1:18am

Is there a Max object to find the mathematical mode of several given values?

I looked all over the forums and couldn’t find anything about this.
Thanks to anyone who can assist me!

- Rob

#65246
Nov 17, 2012 at 8:19am

I sure don’t guarantee that this is the easiest way, but it’s one way that came to mind.

– Pasted Max Patch, click to expand. –
#235181
Nov 17, 2012 at 10:29pm

just a simple algo patched with max objects. Versions for list of ints and floats. Not as elegant as Christopher solution (and almost surely less efficient), but it’s a good thing to have an alternative (esp. for floats). If there are many modes the least one is returned.

In the long run it’s better to write this in some js/java/c or pray to Cycling for extension of zl obj. family :).

– Pasted Max Patch, click to expand. –
#235182
Nov 17, 2012 at 11:26pm

Thanks you all! You’ve been a huge help!

#235183

You must be logged in to reply to this topic.