/usr/lib/pd/extra/mapping/median_n.pd is in pd-mapping 0.2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #N canvas 1 53 652 617 10;
#X declare -lib zexy;
#X obj 468 16 import zexy;
#X obj 88 37 inlet;
#X obj 254 115 f \$1;
#X obj 117 321 list split 5;
#X obj 159 490 list split 1;
#X obj 159 550 outlet;
#X obj 255 85 loadbang;
#X obj 342 86 inlet;
#X obj 127 461 list split;
#X obj 126 371 sort;
#X obj 117 237 list append;
#X obj 290 316 expr rint(($f1+1)/2)-1;
#X text 329 585 )c( Alexandre Quessy 2006;
#X text 203 59 arg/ inlet 2 : Number of values in the sample set of
data.;
#X text 86 12 inlet 1 : float;
#X text 214 547 median;
#X connect 1 0 10 0;
#X connect 2 0 3 1;
#X connect 2 0 11 0;
#X connect 3 0 9 0;
#X connect 3 0 10 1;
#X connect 3 2 10 1;
#X connect 4 0 5 0;
#X connect 6 0 2 0;
#X connect 7 0 2 0;
#X connect 8 1 4 0;
#X connect 9 0 8 0;
#X connect 10 0 3 0;
#X connect 11 0 8 1;
|