Evaluates the hypergeometric probability density function.
Controller: CodeCogs
Contents
Interface
C++
Excel
doublePDF( | int | x | |
int | a | ||
int | b | ||
int | n | ) |
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.