<div>Hi,<br clear="all"></div><div><br></div><div>I was going to program something, but wanted to see if someone hasn&#39;t done it before. I needed a &quot;weighted average&quot; (probably the name is incorrect, I just made it up), that is: considering an x number of sliders going from 0 to 1, the sum of all sliders would be always 1. In case I drag one slider up or down, the difference in value to the total (1) would be distributed through the other sliders that aren&#39;t active.</div>
<div>That itself isn&#39;t that hard to do, but then harder would be to consider the previous state when the next change happens. So that a slider that is already higher than the others by the next change would &quot;retain&quot; the average countour.</div>
<div><br></div><div>I&#39;ll give an example for clarity:</div><div>- 4 sliders, initial state is each at 0,25 (4x0,25 = 1)</div><div>- I move slider #2 to 0,4, leaving a remainer of 0,6 to be distributed by the other sliders. Sliders #1, #3 and #4 would then go down to 0,2 each.</div>
<div>- now slider #2 is higher than the others. But if I move #4 to 0,4, it shouldn&#39;t happen that #1-3 move to 0,2. instead, the higher countour of #2 should be taken into account. The end result would be something like #4 = 0,4, #2 &gt; 0,2, and #1 &amp; #3 &lt; 0,2.</div>
<div>- if I continued moving the sliders around, a similar behaviour would happen.</div><div>- as a bonus, it would be possible to lock a slider into the present value, only the others move.</div><div><br></div><div>Is there any external/patch for this, or any statistic formula / website I should look at for this?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Joćo</div><br>-- <br>Friedenstr. 58<br>10249 Berlin Deutschland<br>Tel +49 30 42020091 | Mob +49 162 6843570<br><a href="mailto:jmmmpais@googlemail.com">jmmmpais@googlemail.com</a> | skype: jmmmpjmmmp<br>
<a href="http://www.puredata.org/Members/jmmmp">http://www.puredata.org/Members/jmmmp</a><br>