Hi Claude.
Thanks for sharing this innovative concept I think its very usefull. Cant wait to hear how you use it
Attached patch is my way of making centered random.
mhv/ (kind regards) Steffen Leve Poulsen
Claude Heiland-Allen skrev:
Here's an example of a random walk that is biased towards the middle of its range and is guaranteed not exceed its bounds.
Hope someone finds it useful, I'm using it for melodies in a generative piece (I'll publish the full patch in a couple of weeks).
Any statisticians want to analyse it further than I have? Anyone have any suggestions for improvements?
Claude
#N canvas 108 44 738 515 10; #X obj 46 163 tabwrite vu; #X obj 46 136 + 1; #X obj 46 98 tabread vu; #X obj 46 64 t f f; #N canvas 0 0 450 300 (subpatch) 0; #X array vu 1000 float 2; #X coords 0 99 1000 0 200 140 1; #X restore 398 177 graph; #X obj 46 -25 until; #X msg 106 -53 ; vu const 0; #X obj 46 21 expr (random(1000 , 0)+random(1000 , 0)+random(1000 , 0))/3; #X msg 46 -53 100000; #X connect 1 0 0 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 3 1 0 1; #X connect 5 0 7 0; #X connect 7 0 3 0; #X connect 8 0 5 0;