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

Lines Matching refs:prob

49         std::vector<double> prob(std::begin(p), std::end(p));
50 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
51 for (int i = 0; i < prob.size(); ++i)
52 prob[i] /= s;
60 if (prob[i] == 0)
64 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
109 std::vector<double> prob(std::begin(p), std::end(p));
110 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
111 for (int i = 0; i < prob.size(); ++i)
112 prob[i] /= s;
120 if (prob[i] == 0)
124 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
169 std::vector<double> prob(std::begin(p), std::end(p));
170 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
171 for (int i = 0; i < prob.size(); ++i)
172 prob[i] /= s;
180 if (prob[i] == 0)
184 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
229 std::vector<double> prob(std::begin(p), std::end(p));
230 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
231 for (int i = 0; i < prob.size(); ++i)
232 prob[i] /= s;
240 if (prob[i] == 0)
244 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
289 std::vector<double> prob(std::begin(p), std::end(p));
290 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
291 for (int i = 0; i < prob.size(); ++i)
292 prob[i] /= s;
300 if (prob[i] == 0)
304 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
349 std::vector<double> prob(std::begin(p), std::end(p));
350 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
351 for (int i = 0; i < prob.size(); ++i)
352 prob[i] /= s;
360 if (prob[i] == 0)
364 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
409 std::vector<double> prob(std::begin(p), std::end(p));
410 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
411 for (int i = 0; i < prob.size(); ++i)
412 prob[i] /= s;
420 if (prob[i] == 0)
424 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
469 std::vector<double> prob(std::begin(p), std::end(p));
470 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
471 for (int i = 0; i < prob.size(); ++i)
472 prob[i] /= s;
480 if (prob[i] == 0)
484 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
529 std::vector<double> prob(std::begin(p), std::end(p));
530 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
531 for (int i = 0; i < prob.size(); ++i)
532 prob[i] /= s;
540 if (prob[i] == 0)
544 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
589 std::vector<double> prob(std::begin(p), std::end(p));
590 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
591 for (int i = 0; i < prob.size(); ++i)
592 prob[i] /= s;
600 if (prob[i] == 0)
604 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);
649 std::vector<double> prob(std::begin(p), std::end(p));
650 double s = std::accumulate(prob.begin(), prob.end(), 0.0);
651 for (int i = 0; i < prob.size(); ++i)
652 prob[i] /= s;
660 if (prob[i] == 0)
664 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01);