<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thank you very much. That does the trick.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Though, [array random] doesn&#39;t seem to be working as I expected. Am I right to think that it should produce the same result as [array <span class="" style>quantile</span>] fed with uniformly distributed random values? If so I&#39;m getting very different results here. </div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Peiman</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="comic sans ms, sans-serif"><b><a href="http://www.peimankhosravi.co.uk" target="_blank">www.peimankhosravi.co.uk</a> || <a href="http://peimankhosravi.co.uk/miscposts.rss" target="_blank">RSS Feed</a> || <a href="http://spectralkimia.wordpress.com/" target="_blank">Concert News</a></b></font></div>
</div></div>
<br><br><div class="gmail_quote">On 22 November 2013 04:16, Miller Puckette <span dir="ltr">&lt;<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think the patch is occasionally (once every 512 times on average) sending<br>
zero to &quot;array quantile&quot; which then outputs the index of the first nonzero<br>
number in the table -- in this case a point with probability about 1e-45.<br>
<br>
Maybe try random 1e8 (or so) and divide by 1e8 to get a more continuous,<br>
less grainy random sample out of the array.<br>
<br>
cheers<br>
Miller<br>
<div><div class="h5"><br>
On Fri, Nov 22, 2013 at 01:51:19AM +0000, peiman khosravi wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; Has anyone got any experience with [array quantile]?<br>
&gt;<br>
&gt; I&#39;m getting some strange results and I&#39;ve done everything I can think of.<br>
&gt;<br>
&gt; I&#39;ve attached a patch that should clarify the problem. Basically,<br>
&gt; sometimes, not always, [array quantile] returns some weird numbers that I<br>
&gt; can&#39;t explain.<br>
&gt;<br>
&gt; And a related issue: array random doesn&#39;t seem to be doing what it should<br>
&gt; be doing. It returns very different values, compared with quantile fed with<br>
&gt; random values between 0 and 1. Again, there is an example of what I mean in<br>
&gt; the attached patch.<br>
&gt;<br>
&gt; Thanks<br>
&gt; Peiman<br>
&gt;<br>
&gt;<br>
</div></div>&gt; *<a href="http://www.peimankhosravi.co.uk" target="_blank">www.peimankhosravi.co.uk</a> &lt;<a href="http://www.peimankhosravi.co.uk" target="_blank">http://www.peimankhosravi.co.uk</a>&gt; || RSS Feed<br>

&gt; &lt;<a href="http://peimankhosravi.co.uk/miscposts.rss" target="_blank">http://peimankhosravi.co.uk/miscposts.rss</a>&gt; || Concert News<br>
&gt; &lt;<a href="http://spectralkimia.wordpress.com/" target="_blank">http://spectralkimia.wordpress.com/</a>&gt;*<br>
<br>
<br>
&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote></div><br></div>