Comments on: Generating Random Points from Arbitrary Distributions for 2D and Up
http://code-spot.co.za/2009/04/15/generating-random-points-from-arbitrary-distributions-for-2d-and-up/
a programming blogWed, 27 Jun 2018 23:36:47 +0000hourly1https://wordpress.org/?v=4.9.8By: herman.tulleken
http://code-spot.co.za/2009/04/15/generating-random-points-from-arbitrary-distributions-for-2d-and-up/comment-page-1/#comment-12835
Thu, 27 Jan 2011 22:31:23 +0000http://code-spot.co.za/?p=550#comment-12835It is a two step process. You use your random number to look up into c. This gives you two things – first, the x-coordinate of the random point, and second, a way to calculate an index. This index determines which cy to use. You use your second random number to do a lookup in this array, and this gives you the y-coordinate of the point.
]]>By: Giorgos
http://code-spot.co.za/2009/04/15/generating-random-points-from-arbitrary-distributions-for-2d-and-up/comment-page-1/#comment-12818
Wed, 26 Jan 2011 01:27:57 +0000http://code-spot.co.za/?p=550#comment-12818I tried to implement this idea but I must be missing something. The cy and cx arrays contain the Inverrse cumulative distributions describing the number of points that one want to generate for each cell. I do not understand how looking up into these arrays return real x and y coordinates?
]]>By: code-spot · Generating Random Integers With Arbitrary Probabilities
http://code-spot.co.za/2009/04/15/generating-random-points-from-arbitrary-distributions-for-2d-and-up/comment-page-1/#comment-1185
Tue, 28 Apr 2009 08:22:57 +0000http://code-spot.co.za/?p=550#comment-1185[…] written about generating random numbers (floats) with arbitrary distributions for one dimension and higher dimensions, and indeed that method can be adapted for generating integers with specific probabilities. […]
]]>By: code-spot · Estimating a Continuous Distribution from a Sample Set
http://code-spot.co.za/2009/04/15/generating-random-points-from-arbitrary-distributions-for-2d-and-up/comment-page-1/#comment-714
Wed, 15 Apr 2009 14:28:53 +0000http://code-spot.co.za/?p=550#comment-714[…] test your distribution by generating a random set from it, and comparing it with the original sample. They should match […]
]]>