Update of /cvsroot/pure-data/externals/mapping/help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27076/help
Added Files: smooth-help.pd smooth_double-help.pd smooth_triple-help.pd Log Message:
- added single, double and triple exponential smoothing objects based on NIST alorgithms (the links are included in the patches). This was originally inspired by Fredrik Olofsson's f0.smooth and f0.smooth2, but I added triple exponential smoothing, and made them as Pd patches.
--- NEW FILE: smooth_double-help.pd --- #N canvas 330 215 710 386 10; #X obj 241 157 mapping/timeroll; #X obj 20 157 mapping/timeroll; #N canvas 0 22 450 300 get 0; #X obj 115 19 inlet; #X obj 125 250 outlet; #X obj 108 100 cyclone/MouseState; #X msg 108 73 poll; #X obj 160 127 mapping/autoscale; #X obj 160 152 mapping/reverse; #X msg 144 73 nopoll; #X obj 114 44 select 1; #X connect 0 0 7 0; #X connect 2 2 4 0; #X connect 3 0 2 0; #X connect 4 0 5 0; #X connect 5 0 1 0; #X connect 6 0 2 0; #X connect 7 0 3 0; #X connect 7 1 6 0; #X restore 278 72 pd get mouse Y; #X obj 278 50 tgl 15 0 empty empty empty 17 7 0 10 -204786 -1 -1 1 1; #X text 22 309 (idea from Fredrik Olofsson); #X obj 413 72 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262130 -1 -1 0 1; #X floatatom 425 92 5 0 0 0 - - -; #X text 23 14 Double Exponential Smoothing (des); #X obj 40 333 pddp/pddplink http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc433.htm ; #X obj 461 157 mapping/timeroll; #X obj 339 114 smooth_double; #X text 498 132 trend (+-1):; #X connect 2 0 1 0; #X connect 2 0 10 0; #X connect 3 0 2 0; #X connect 5 0 6 0; #X connect 5 0 10 1; #X connect 10 0 0 0; #X connect 10 1 9 0;
--- NEW FILE: smooth-help.pd --- #N canvas 654 331 475 374 10; #X obj 241 157 mapping/timeroll; #X obj 20 157 mapping/timeroll; #X obj 40 333 pddp/pddplink http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc431.htm ; #N canvas 0 22 450 300 get 0; #X obj 115 19 inlet; #X obj 125 250 outlet; #X obj 108 100 cyclone/MouseState; #X msg 108 73 poll; #X obj 160 127 mapping/autoscale; #X obj 160 152 mapping/reverse; #X msg 144 73 nopoll; #X obj 114 44 select 1; #X connect 0 0 7 0; #X connect 2 2 4 0; #X connect 3 0 2 0; #X connect 4 0 5 0; #X connect 5 0 1 0; #X connect 6 0 2 0; #X connect 7 0 3 0; #X connect 7 1 6 0; #X restore 180 75 pd get mouse Y; #X obj 180 53 tgl 15 0 empty empty empty 17 7 0 10 -204786 -1 -1 0 1; #X text 22 309 (idea from Fredrik Olofsson); #X obj 277 92 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262130 -1 -1 0 1; #X floatatom 289 112 5 0 0 0 - - -; #X text 23 14 Single Exponential Smoothing (ses); #X obj 241 117 smooth; #X text 329 114 (default: 0.15); #X connect 3 0 1 0; #X connect 3 0 9 0; #X connect 4 0 3 0; #X connect 6 0 7 0; #X connect 6 0 9 1; #X connect 9 0 0 0;
--- NEW FILE: smooth_triple-help.pd --- #N canvas 608 255 867 373 10; #X obj 231 157 mapping/timeroll; #X obj 20 157 mapping/timeroll; #N canvas 0 22 450 300 get 0; #X obj 115 19 inlet; #X obj 125 250 outlet; #X obj 108 100 cyclone/MouseState; #X msg 108 73 poll; #X obj 160 127 mapping/autoscale; #X obj 160 152 mapping/reverse; #X msg 144 73 nopoll; #X obj 114 44 select 1; #X connect 0 0 7 0; #X connect 2 2 4 0; #X connect 3 0 2 0; #X connect 4 0 5 0; #X connect 5 0 1 0; #X connect 6 0 2 0; #X connect 7 0 3 0; #X connect 7 1 6 0; #X restore 278 72 pd get mouse Y; #X obj 278 50 tgl 15 0 empty empty empty 17 7 0 10 -204786 -1 -1 1 1; #X obj 401 57 hsl 60 15 0 1 0 0 empty empty alpha -2 -8 0 10 -262130 -1 -1 1900 1; #X floatatom 398 77 5 0 0 0 - - -; #X obj 441 157 mapping/timeroll; #X obj 651 157 mapping/timeroll; #X obj 407 338 pddp/pddplink http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc435.htm ; #X obj 339 114 smooth_triple; #X text 23 14 Triple Exponential Smoothing (tes); #X text 316 338 For more info:; #X text 61 310 original signal; #X text 291 310 smoothed signal; #X text 713 306 periodicity; #X text 503 309 trend (+-1); #X obj 471 57 hsl 60 15 0 1 0 0 empty empty gamma -2 -8 0 10 -262130 -1 -1 0 1; #X floatatom 468 77 5 0 0 0 - - -; #X obj 541 57 hsl 60 15 0 1 0 0 empty empty beta -2 -8 0 10 -262130 -1 -1 0 1; #X floatatom 538 77 5 0 0 0 - - -; #X obj 611 57 hsl 60 15 1 20 0 0 empty empty number_of_periods -2 -8 0 10 -262130 -1 -1 2300 1; #X floatatom 608 77 5 0 0 0 - - -; #X connect 2 0 1 0; #X connect 2 0 9 0; #X connect 3 0 2 0; #X connect 4 0 5 0; #X connect 4 0 9 1; #X connect 9 0 0 0; #X connect 9 1 6 0; #X connect 9 2 7 0; #X connect 16 0 17 0; #X connect 16 0 9 2; #X connect 18 0 19 0; #X connect 18 0 9 3; #X connect 20 0 21 0; #X connect 20 0 9 4;