Mon Jun 20, 2022 11:42 am
I often use the CustomTool but mostly only at the surface of its abilities.
I remember that there once was a nice documentation about what is possible with it and right now I am looking for a median or ranking function for n elements. Does this exist?
EDIT..
I figured it out and here are the lines to copy into the fields of the CustomTool>Channel Tab
MEAN
- Code: Select all
(c1+c2+c3)/3
MEDIAN
- Code: Select all
if ((c1 <= c2 && c2 <= c3) || (c3 <= c2 && c2 <= c1), c2, if((c2 <= c1 && c1 <= c3) || (c3 <= c1 && c1 <= c2), c1, c3))
It is static and only working for three inputs (elements), but it works inside of one node.
Regards,
Rainer
Rainer M. Engel
scientific|Media imageLAB Berlin, Germany