Home | History | Annotate | Download | only in rand.dist.samp.pconst

Lines Matching refs:prob

51         std::vector<double> prob(std::begin(p), std::end(p));
52 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
53 for (int i = 0; i < prob.size(); ++i)
54 prob[i] /= s;
62 if (prob[i] == 0)
66 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
111 std::vector<double> prob(std::begin(p), std::end(p));
112 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
113 for (int i = 0; i < prob.size(); ++i)
114 prob[i] /= s;
122 if (prob[i] == 0)
126 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
171 std::vector<double> prob(std::begin(p), std::end(p));
172 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
173 for (int i = 0; i < prob.size(); ++i)
174 prob[i] /= s;
182 if (prob[i] == 0)
186 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
231 std::vector<double> prob(std::begin(p), std::end(p));
232 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
233 for (int i = 0; i < prob.size(); ++i)
234 prob[i] /= s;
242 if (prob[i] == 0)
246 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
291 std::vector<double> prob(std::begin(p), std::end(p));
292 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
293 for (int i = 0; i < prob.size(); ++i)
294 prob[i] /= s;
302 if (prob[i] == 0)
306 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
351 std::vector<double> prob(std::begin(p), std::end(p));
352 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
353 for (int i = 0; i < prob.size(); ++i)
354 prob[i] /= s;
362 if (prob[i] == 0)
366 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
411 std::vector<double> prob(std::begin(p), std::end(p));
412 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
413 for (int i = 0; i < prob.size(); ++i)
414 prob[i] /= s;
422 if (prob[i] == 0)
426 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
471 std::vector<double> prob(std::begin(p), std::end(p));
472 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
473 for (int i = 0; i < prob.size(); ++i)
474 prob[i] /= s;
482 if (prob[i] == 0)
486 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
531 std::vector<double> prob(std::begin(p), std::end(p));
532 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
533 for (int i = 0; i < prob.size(); ++i)
534 prob[i] /= s;
542 if (prob[i] == 0)
546 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
591 std::vector<double> prob(std::begin(p), std::end(p));
592 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
593 for (int i = 0; i < prob.size(); ++i)
594 prob[i] /= s;
602 if (prob[i] == 0)
606 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
651 std::vector<double> prob(std::begin(p), std::end(p));
652 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
653 for (int i = 0; i < prob.size(); ++i)
654 prob[i] /= s;
662 if (prob[i] == 0)
666 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);