Post Reply 
Using the Raised Cosine Distribution in PRNG
12-26-2016, 08:01 PM
Post: #10
RE: Using the Raised Cosine Distribution in PRNG
(12-26-2016 07:39 AM)Paul Dale Wrote:  On calculators that support it:

\( RAND \\ \phi^{-1}\)

works really well. It might even be faster than the programme steps for the raised cosine distribution -- depending on the approximation used for \( \phi^{-1}\)

If you refer to the 34s: The Normal quantile is evaluated by an initial first guess which is then refined in one or (at most) two iterations. Since every iteration calls the Incomplete Gamma function which is a bit slow for arguments > √3, a faster simplified approach could be used that only applies the first guess to the random number. At least for the suggested application in games this should be sufficiently exact. But the Normal guess routine is not exposed to the user so the suggested method is not applicable. At least not directly. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Using the Raised Cosine Distribution in PRNG - Dieter - 12-26-2016 08:01 PM



User(s) browsing this thread: 1 Guest(s)