<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'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'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"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></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 "array quantile" 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>
> Hello,<br>
><br>
> Has anyone got any experience with [array quantile]?<br>
><br>
> I'm getting some strange results and I've done everything I can think of.<br>
><br>
> I've attached a patch that should clarify the problem. Basically,<br>
> sometimes, not always, [array quantile] returns some weird numbers that I<br>
> can't explain.<br>
><br>
> And a related issue: array random doesn't seem to be doing what it should<br>
> be doing. It returns very different values, compared with quantile fed with<br>
> random values between 0 and 1. Again, there is an example of what I mean in<br>
> the attached patch.<br>
><br>
> Thanks<br>
> Peiman<br>
><br>
><br>
</div></div>> *<a href="http://www.peimankhosravi.co.uk" target="_blank">www.peimankhosravi.co.uk</a> <<a href="http://www.peimankhosravi.co.uk" target="_blank">http://www.peimankhosravi.co.uk</a>> || RSS Feed<br>
> <<a href="http://peimankhosravi.co.uk/miscposts.rss" target="_blank">http://peimankhosravi.co.uk/miscposts.rss</a>> || Concert News<br>
> <<a href="http://spectralkimia.wordpress.com/" target="_blank">http://spectralkimia.wordpress.com/</a>>*<br>
<br>
<br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <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>