Maxim Khailo's Writing
  • Home
  • About
Sign in Subscribe

perl6

A collection of 1 post
perl6

Rejection Sampling with Perl 6

Perl 6 provides a way to create lazy lists using the gather/take keywords. What I wanted to do was create an infinite list of samples from a known distribution of values. A simple way to sample from a known distribution is to do Rejection Sampling and doing this in
27 Jul 2017 1 min read
Page 1 of 1
Maxim Khailo's Writing © 2026
  • Sign up
Powered by Ghost