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
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/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.