문제

Does anyone know of any libraries that provide the betainv function in c++?

The betainv(x,a,b) computes the xth quantile of a beta distribution with parameters a,b

도움이 되었습니까?

해결책

The Boost C++ Libraries have a beta distribution, and all boost distributions include the inverse cumulative density function: Quantile.

e.g.

double probability=...;
beta_distribution<> mybeta(2, 5);
cout << quantile(mybeta, probability);

다른 팁

I'm not sure, but I believe that API of Wolfram Mathematica, MatLab or R should provide such method.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top