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
Max Patch
Copy patch and select New From Clipboard in Max.
I sure don't guarantee that this is the easiest way, but it's one way that came to mind.
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.
Max Patch
Copy patch and select New From Clipboard in Max.
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 :).
Thanks you all! You've been a huge help!