Reputation: 47354
I'm trying to generate an array of bell curve numbers with a certain number of buckets/discrete values between both ends. For example, I need 30 buckets, following bell curve distribution and add up to 1.0. The number in the first bucket and last bucket would be about 0.015, second 0.02 and so on.
Is there a function built into objective-c or an open source project that can help me generate a bell curve with n buckets?
Upvotes: 2
Views: 554
Reputation: 19855
For a relatively small number of buckets, building a table of values would work just fine. You'd only need to do half the work, too, because it's symmetric.
Upvotes: 0