Jump to content

poisson distribution function?


muppet77

Recommended Posts

is it possible to calculate values in php using the poisson distribution?

 

I have searched for a function and also searched this forum.

 

I found stats_cdf_poisson but with not much help at http://php.net/manual/en/function.stats-cdf-poisson.php

 

I tried plugging in some numbers but i just got

Call to undefined function stats_cdf_poisson()

 

echo stats_cdf_poisson(10,10.1,1);

 

any ideas please?

 

I don't think that it can be mathematically calculated can it? In excel there is a nice function already set up.

 

Every web search seems to lead back to the link I posted above.

 

Thanks in advance!

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/261813-poisson-distribution-function/
Share on other sites

If you are using shared hosting then it will be unlikely for you to install them. You can try contacting the host provider and ask them if they could install the extension but it's also unlikely they will.

 

An other option you may have is finding the poisson distribution in pure PHP like:

http://www.phpmath.com/build02/PDL/docs/package.php?view=6c892fdf713fd5c15ff0cdd31daf79463531ceef

 

Which uses PEAR (quite likely to be installed on your host). A full index of pure PHP mathematical functions can be found at: http://www.phpmath.com/build02/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.