(50g) Normal Distribution
|
12-06-2018, 08:30 PM
(This post was last modified: 12-07-2018 11:52 PM by Albert Chan.)
Post: #13
|
|||
|
|||
RE: (50g) Normal Distribution
Hi, John Keith
You are right. On a calculator, 3 Exp method maybe faster. I did the test on the computer. Cost of PDF function is dominated by Exp. 2 Exp method take 2X as long, 3 Exp method take 2.83X (using C language) "Splitting" factor 1/√(2 pi) inside Exp reduce error somewhat: PHP Code: def pdf(x, k=0.08106146679532726, exp=math.exp, floor=math.floor): |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)