www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Random sampling in D -- blog post

reply Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
Hello all,

My patches to RandomSample were accepted earlier this month (thanks to both 
Jonathan and Andrei:-) so I thought I'd write a short blog post (which turned 
into a very long blog post...) about random sampling, the algorithms concerned, 
and its implementation in D.
http://braingam.es/2012/07/sampling-d/

If anyone's interested I may write up something more extended on the algorithms 
(if I can find a decent maths-notation solution for WordPress...) and on the D 
framework for random sampling (it could be fun to put up some creative examples 
of how to use it with different kinds of input).

Best wishes,

     -- Joe
Jul 18 2012
next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
On Wednesday, 18 July 2012 at 14:55:18 UTC, Joseph Rushton 
Wakeling wrote:
 Hello all,

 My patches to RandomSample were accepted earlier this month 
 (thanks to both Jonathan and Andrei:-) so I thought I'd write a 
 short blog post (which turned into a very long blog post...) 
 about random sampling, the algorithms concerned, and its 
 implementation in D.
 http://braingam.es/2012/07/sampling-d/

 If anyone's interested I may write up something more extended 
 on the algorithms (if I can find a decent maths-notation 
 solution for WordPress...) and on the D framework for random 
 sampling (it could be fun to put up some creative examples of 
 how to use it with different kinds of input).

 Best wishes,

     -- Joe
Algorithm D in D. :D
Jul 19 2012
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 7/18/12 7:55 AM, Joseph Rushton Wakeling wrote:
 Hello all,

 My patches to RandomSample were accepted earlier this month (thanks to
 both Jonathan and Andrei:-) so I thought I'd write a short blog post
 (which turned into a very long blog post...) about random sampling, the
 algorithms concerned, and its implementation in D.
 http://braingam.es/2012/07/sampling-d/
You should know Chrome displays quite a weird stub while loading that page over a slow connection. Anyway, vote up! http://www.reddit.com/r/programming/comments/wu7tx/random_sampling_in_the_d_programming_language/
 If anyone's interested I may write up something more extended on the
 algorithms (if I can find a decent maths-notation solution for
 WordPress...) and on the D framework for random sampling (it could be
 fun to put up some creative examples of how to use it with different
 kinds of input).
That would be awesome, and we'd put it on the website. Andrei
Jul 19 2012
parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On 19/07/12 23:33, Andrei Alexandrescu wrote:
 You should know Chrome displays quite a weird stub while loading that page over
 a slow connection.
Ack. That'll be the way that Chrome handles embedded website fonts -- doesn't display _anything_ until the fonts have loaded. I really must try and find a way round that.
 That would be awesome, and we'd put it on the website.
I'll see what I can do. :-)
Jul 20 2012