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

@@ -124,7 +124,7 @@ that the true occurrence frequency lies *inside* the calculated interval.
*/
cout << "level of significance (alpha)" << setprecision(4) << endl;
cout << "2-sided 1 -sided z(alpha) " << endl;
for (int i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
for (unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
{
cout << setw(15) << alpha[i] << setw(15) << alpha[i] /2 << setw(10) << quantile(complement(s, alpha[i]/2)) << endl;
// Use quantile(complement(s, alpha[i]/2)) to avoid potential loss of accuracy from quantile(s, 1 - alpha[i]/2)