如何翻译这个使用来自GNU 科学图书馆的超几何分布函数的 C++ 程序
http://www.gnu.org/software/gsl/manual/html_node/The-Hypergeometric-Distribution.html
转换为使用Boost 库中类似函数的 C++ 程序?
#include <cstdlib>
#include <iostream>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_cdf.h>
int main(int argc,char *argv[]) {
unsigned int n1 = 256;
unsigned int n2 = 1583;
unsigned int t = 300;
unsigned int k = 40;
std::cout << gsl_ran_hypergeometric_pdf(k, n1, n2, t)
<< std::endl
<< gsl_cdf_hypergeometric_P(k, n1, n2, t)
<< std::endl;
return EXIT_SUCCESS;
}