2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Reorganised into two examples.

[SVN r3306]
This commit is contained in:
Paul A. Bristow
2006-10-24 09:41:19 +00:00
parent 78cac89492
commit 691dbdeca6
2 changed files with 10 additions and 9 deletions

View File

@@ -61,8 +61,10 @@ int main(int, char* [])
// Note: double values (matching the distribution definition) avoid the need for any casting.
cout << "mean(my8dist) = " << mean(my8dist) << endl; //
cout << "my8dist.successes() = " << my8dist.successes() << endl; // r th trial is successful.
cout << "my8dist.success_fraction() = " << my8dist.success_fraction() << endl; //
cout << "my8dist.successes() = " << my8dist.successes() << endl;
// r th trial is successful, after r-1 = k failures.
cout << "my8dist.success_fraction() = " << my8dist.success_fraction() << endl;
// failures/successes.
cout << "cdf(my8dist, 2.) = " << cdf(my8dist, 2.) << endl; // 4.1580200195313E-4
cout << "cdf(my8dist, 8.) = " << cdf(my8dist, 8.) << endl;