I need a C function to calculate Poisson distribution for values of k upto 720. I need a highly efficient solution. I urgently need this solution. Thanks in advance
+1 Nice! Didn't even know it existed :)
Magnus Skog
2009-06-29 10:35:09
Thanks a lot :)
2009-06-29 10:56:33
+1
A:
If you want to calculate it yourself instead of using a library
You can calculate it using the formula.. e^k*e^(-lambda)/k!
you can use log(n!) = log(n)+log(n-1!) and dynamic programming
Neeraj
2009-06-29 12:27:45