Split::Algorithm::WeightedSample

34 views
Skip to first unread message

Jose Donizetti

unread,
Mar 7, 2013, 12:05:37 PM3/7/13
to split...@googlegroups.com
Hey guys, 

Can someone point me where I can understand more about the WeightedSample algorithm used?
Want to understand why it works well to distribute users when setting a percentage.

Thanks.

Ian Young

unread,
Mar 7, 2013, 7:22:31 PM3/7/13
to Jose Donizetti, split...@googlegroups.com
Hey Jose,


It's a fairly clever implementation. Basically smashes together all the alternative weights, picks a random point along that continuum, and then determines which alternative it falls under.

Ian


--
You received this message because you are subscribed to the Google Groups "Split Rubygem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to split-ruby+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages