views:

543

answers:

2

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

+2  A: 

give a to try GSL: gsl_ran_poisson_pdf

dfa
+1 Nice! Didn't even know it existed :)
Magnus Skog
Thanks a lot :)
+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