Or login with:
| doublePDF( | int | n | |
| double | lambda | ) |
#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; }
Poisson distribution probability density of 2 events and 5 mean value is : PDF(2,5) = 0.0842243
| n | the number of events (or sample size) |
| lambda | the expected mean value, which must be greater than zero. |
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.
You must login to leave a messge