I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 0.50
sub units 0.00
+
0

PDF

viewed 2186 times and licensed 54 times
Poisson probability density.
Controller: CodeCogs

Interface

C++

PDF

 
doublePDFintn
doublelambda )
Calculates the Poisson distribution probability density for a number of events, n, with an expected mean value of \inline \lambda.

where \inline  v= \lambda x

Example:

#include <iostream>
#include <codecogs/statistics/distributions/discrete/poisson/pdf.h>
using namespace Stats::Dists::Discrete::Poisson;
 
int main()
{
  std::cout << "\nPoisson distribution probability density of 2 events and 5  mean value is : \n";
  std::cout << "PDF(2,5) = " << PDF(2,5);
  return 0;
}

Output:

Poisson distribution probability density of 2 events and 5  mean value is :
PDF(2,5) = 0.0842243

Parameters

nthe number of events (or sample size)
lambdathe expected mean value, which must be greater than zero.

Returns

the Poisson distribution probability density. Returns -1 on an error.

Authors

Eugene Dolinskyy
Update by Will Bateman (August 2005)
Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.