PDF
Evaluates the hypergeometric probability density function.
Controller:
CodeCogs
Interface
#include <codecogs/statistics/distributions/discrete/hypergeometric/pdf.h>
using namespace Stats::Dists::Discrete::Hypergeometric;
| double | PDF (int x, int a, int b, int n)
Evaluates the hypergeometric probability density function. |
These functions are available for Microsoft Excel (
Login to download):
| Real | cc_hypergeometricPDF (Integer x, Integer a, Integer b, Integer n) |
Use the following HTML code to embed the calculators within other websites:
| Name | HTML Code |
|---|
PDF
Evaluates the hypergeometric probability density function. | |
PDF
This function evaluates the hypergeometric probability density function.
Example 1
#include <iostream>
#include <codecogs/stats/dists/discrete/hypergeometric/pdf.h>
int main()
{
std::cout << "hypergeometric PDF (5, 10, 20, 8) = ";
std::cout << Stats::Dists::Discrete::Hypergeometric::PDF(5, 10, 20, 8) << std::endl;
return 0;
}
Ouput:
hypergeometric PDF (5, 10, 20, 8) = 0.0490832
Authors
- Lucian Bentea (September 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.
You must login to leave a messge