• Home
  • Raw
  • Download

Lines Matching refs:cout

52   using std::cout; using std::endl;
63 cout <<"Geometric distribution example" << endl; in main()
64 cout << endl; in main()
66 cout.precision(4); // But only show a few for this example. in main()
101 cout << "success fraction of a six-sided dice is " << g6.success_fraction() << endl; in main()
104 cout << pdf(g6, 0) << endl; // 0.1667 in main()
105 cout << cdf(g6, 0) << endl; // 0.1667 in main()
109 cout << pdf(g6, 1) << endl; // 0.1389 in main()
114 cout << "pdf(g6, 0) + pdf(g6, 1) = " << pdf(g6, 0) + pdf(g6, 1) << endl; in main()
118 cout << "cdf(g6, 1) = " << cdf(g6, 1) << endl; // 0.3056 in main()
121 cout << "cdf(g6, 12) = " << cdf(g6, 12) << endl; // 0.9065 or 90% probability. in main()
126 cout << "quantile(g6, 0.99) = " << quantile(g6, 0.99) << endl; // 24.26 in main()
139 cout << pdf(nb, 1) << endl; // 0.1389 in main()
140 cout << cdf(nb, 1) << endl; // 0.3056 in main()
144 cout << "quantile(complement(g6, 1 - p)) " << quantile(complement(g6, 0.01)) << endl; // 24.26 in main()
162 cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined" << endl; in main()
166cout << "Show all potentially significant decimal digits std::numeric_limits<double>::max_digits10… in main()
168 cout.precision(max_digits10); // in main()
170 cout << cdf(g05, 0.0001) << endl; // returns 0.5000346561579232, not exact 0.5. in main()
174 cout << cdf(g05, floor(0.0001)) << endl; // returns exactly 0.5 in main()
200 cout.precision(5); in main()
203 cout << " quantile(g, " << c << ") = " << quantile(g, c) << endl; in main()
205 cout << "To be " << c * 100 in main()
209 cout << "To be " << c * 100 in main()
213 cout << "To be " << c * 100 in main()
228 cout.precision(2); in main()
231 cout << "Probability of score on 1st try = " << pdf(gav, 0) << endl; // 0.75 in main()
235 cout << "Probability of score on 5th try = " << pdf(gav, 4) << endl; // 0.0029 in main()
241 cout << "Probability of score on 5th try = " << pdf(gbest, 4) << endl; // 5.9e-6 in main()
243 cout << "Probability of score on 5th try = " << pdf(gmediocre, 4) << endl; // 0.031 in main()
266 cout << "Probability is failure is " << 1/k << endl; in main()
268 cout << "geometric::find_lower_bound_on_p(" << int(k) << ", " << alpha/2 << ") = " in main()
271 cout << "geometric::find_upper_bound_on_p(" << int(k) << ", " << alpha/2 << ") = " in main()
279 cout << "geometric::find_lower_bound_on_p(" << int(k) << ", " << alpha/2 << ") = " in main()
282 cout << "geometric::find_upper_bound_on_p(" << int(k) << ", " << alpha/2 << ") = " in main()
287 cout << "geometric::find_lower_bound_on_p(" << int(k) << ", " << alpha/2 << ") = " in main()
290 cout << "geometric::find_upper_bound_on_p(" << int(k) << ", " << alpha/2 << ") = " in main()
303 std::cout << "\nMessage from thrown exception was:\n " << e.what() << std::endl; in main()