I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Programming » C/C++ »

Testing Poisson distribution CDF in objective c and get wrong results

ORaz\′s Photo
30 Jun 13, 3:45AM
(1 reply)
Testing Poisson distribution CDF in objective c and get wrong results
Hello, I am using Poisson distribution CDF function in objective c and I am getting different results than the one calculated on the website. For example after inserting 5, 7.3, true as input I am getting 0.7360 and not 0.264043 as it should be.

Any idea on how to debug it or where my problem may be?

Thanks,

Ofer
CodeCogs\′s Photo
7 Jul 13, 11:35PM
I would have expected this code to work in objective C, however its possible that they're handling of data types is a little different.

As this function rely upon several other functions, I would test each of these in turn against the values that the relevant CodeCogs pages give. This should narrow down the problem to one or two functions; we'll then look more closely at what is going on.
Currently you need to be logged in to leave a message.