2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00
This commit is contained in:
jzmaddock
2018-07-28 11:33:41 +01:00
parent a2f228ca88
commit 177c642cbc
19 changed files with 195 additions and 141 deletions

View File

@@ -328,7 +328,7 @@ We can list quantiles for a few probabilities:
double ps[] = {0., 0.001, 0.01, 0.05, 0.1, 0.5, 0.9, 0.95, 0.99, 0.999, 1.};
// Confidence as fraction = 1-alpha, as percent = 100 * (1-alpha[i]) %
cout.precision(3);
for (int i = 0; i < sizeof(ps)/sizeof(ps[0]); i++)
for (unsigned i = 0; i < sizeof(ps)/sizeof(ps[0]); i++)
{
cout << "If confidence of meeting quota is " << ps[i]
<< ", then finishing house is " << quantile(nb, ps[i]) + sales_quota