/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ |
H A D | eval.pass.cpp | 38 std::vector<double> prob = d.probabilities(); local 40 assert((double)u[i]/N == prob[i]); 56 std::vector<double> prob = d.probabilities(); local 58 assert((double)u[i]/N == prob[i]); 74 std::vector<double> prob = d.probabilities(); local 76 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); 92 std::vector<double> prob = d.probabilities(); 93 assert((double)u[0]/N == prob[0]); 94 assert((double)u[1]/N == prob[ [all...] |
H A D | eval_param.pass.cpp | 41 std::vector<double> prob = p.probabilities(); local 43 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001);
|
/external/libvpx/libvpx/vp8/common/ |
H A D | entropymv.h | 43 vp8_prob prob[MVPcount]; /* often come in row, col pairs */ member in struct:mv_context
|
H A D | entropy.h | 47 const vp8_prob *prob; member in struct:__anon11177
|
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_cost.c | 40 const vpx_prob prob = probs[i / 2]; local 44 const int cc = c + vp9_cost_bit(prob, b);
|
H A D | vp9_tokenize.h | 58 const vpx_prob *prob; member in struct:__anon11324
|
/external/webp/src/enc/ |
H A D | cost.h | 34 ProbaArray* prob; member in struct:VP8Residual
|
H A D | tree.c | 271 const uint8_t* const prob) { 272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { 273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { 274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { 275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { 276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { 277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); 280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { 281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { 282 VP8PutBit(bw, mode != B_HD_PRED, prob[ 270 PutI4Mode(VP8BitWriter* const bw, int mode, const uint8_t* const prob) argument [all...] |
/external/iproute2/tc/ |
H A D | tc_red.c | 28 Plog = log(prob/(qmax - qmin)) 30 int tc_red_eval_P(unsigned qmin, unsigned qmax, double prob) argument 37 prob /= i; 40 if (prob > 1.0) 42 prob *= 2;
|
/external/webp/src/utils/ |
H A D | bit_reader_inl.h | 108 // Read a bit with proba 'prob'. Speed-critical function! 109 static WEBP_INLINE int VP8GetBit(VP8BitReader* const br, int prob) { argument 119 const range_t split = (range * prob) >> 8; 150 // simplified version of VP8GetBit() for prob=0x80 (note shift is always 1 here)
|
H A D | bit_writer.c | 108 int VP8PutBit(VP8BitWriter* const bw, int bit, int prob) { argument 109 const int split = (bw->range_ * prob) >> 8;
|
/external/webp/src/dec/ |
H A D | tree.c | 316 const uint8_t* const prob = kBModesProba[top[x]][ymode]; local 319 int i = kYModesIntra4[VP8GetBit(br, prob[0])]; 321 i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i])]; 326 ymode = !VP8GetBit(br, prob[0]) ? B_DC_PRED : 327 !VP8GetBit(br, prob[1]) ? B_TM_PRED : 328 !VP8GetBit(br, prob[2]) ? B_VE_PRED : 329 !VP8GetBit(br, prob[3]) ? 330 (!VP8GetBit(br, prob[4]) ? B_HE_PRED : 331 (!VP8GetBit(br, prob[5]) ? B_RD_PRED : B_VR_PRED)) : 332 (!VP8GetBit(br, prob[ [all...] |
/external/guava/guava-tests/benchmark/com/google/common/base/ |
H A D | CharMatcherBenchmark.java | 169 int r = prob.length - 1; 170 int c = prob.length / 2; 171 int lv = prob[l]; 172 int rv = prob[r]; 173 int cv = prob[c]; 186 cv = prob[c]; 193 cv = prob[c]; 199 private static int[] prob; field in class:CharMatcherBenchmark.CharSamples 202 prob = new int[10003]; 919 System.arraycopy(temp, 0, prob, [all...] |
/external/libvpx/libvpx/vpx_dsp/ |
H A D | bitreader.h | 21 #include "vpx_dsp/prob.h" 76 static INLINE int vpx_read(vpx_reader *r, int prob) { argument 82 unsigned int split = (r->range * prob + (256 - prob)) >> CHAR_BIT;
|
H A D | prob.h | 67 const vpx_prob prob = get_binary_prob(ct[0], ct[1]); local 70 return weighted_prob(pre_prob, prob, factor); 87 const vpx_prob prob = local 89 return weighted_prob(pre_prob, prob, factor);
|
/external/lzma/C/ |
H A D | Ppmd7Dec.c | 124 UInt16 *prob = Ppmd7_GetBinSumm(p);
local 125 if (rc->DecodeBit(rc, *prob) == 0)
128 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob);
133 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob);
134 p->InitEsc = PPMD7_kExpEscape[*prob >> 10];
|
H A D | Ppmd7Enc.c | 119 UInt16 *prob = Ppmd7_GetBinSumm(p);
local 123 RangeEnc_EncodeBit_0(rc, *prob);
124 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob);
131 RangeEnc_EncodeBit_1(rc, *prob);
132 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob);
133 p->InitEsc = PPMD7_kExpEscape[*prob >> 10];
|
H A D | Bcj2.c | 63 CProb *prob;
local 87 prob = p + prevByte;
89 prob = p + 256;
91 prob = p + 257;
93 IF_BIT_0(prob)
95 UPDATE_0(prob)
102 UPDATE_1(prob)
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/rangecoder/ |
H A D | RangeEncoder.java | 105 int prob = probs[index]; 106 int bound = (range >>> BIT_MODEL_TOTAL_BITS) * prob; 112 prob + ((BIT_MODEL_TOTAL - prob) >>> MOVE_BITS)); 116 probs[index] = (short)(prob - (prob >>> MOVE_BITS)); 125 public static int getBitPrice(int prob, int bit) { argument 128 return prices[(prob ^ ((-bit) & (BIT_MODEL_TOTAL - 1)))
|
/external/libvpx/libvpx/vp8/decoder/ |
H A D | detokenize.c | 89 static int GetCoeffs(BOOL_DECODER *br, ProbaArray prob, argument 92 const uint8_t* p = prob[n][ctx]; 102 p = prob[kBands[n]][0]; 109 p = prob[kBands[n]][1]; 152 p = prob[kBands[n]][2];
|
H A D | decodemv.c | 124 const vp8_prob *up = vp8_mv_update_probs[i].prob; 221 const vp8_prob * prob; local 223 prob = vp8_sub_mv_ref_prob3[(aez << 2) | 227 return prob; 261 const vp8_prob *prob; local 286 prob = get_sub_mv_ref_prob(leftmv.as_int, abovemv.as_int); 288 if( vp8_read(bc, prob[0]) ) 290 if( vp8_read(bc, prob[1]) ) 293 if( vp8_read(bc, prob[2]) )
|
/external/pdfium/third_party/libopenjpeg20/ |
H A D | mqc.c | 610 void opj_mqc_setstate(opj_mqc_t *mqc, OPJ_UINT32 ctxno, OPJ_UINT32 msb, OPJ_INT32 prob) { argument 611 mqc->ctxs[ctxno] = &mqc_states[msb + (OPJ_UINT32)(prob << 1)];
|
/external/webrtc/webrtc/modules/video_coding/utility/ |
H A D | vp8_header_parser.cc | 72 // Read a bit with proba 'prob'. 73 static int VP8GetBit(VP8BitReader* const br, int prob) { argument 80 const uint8_t split = (range * prob) >> 8;
|
/external/libvpx/libvpx/vp9/decoder/ |
H A D | vp9_detokenize.c | 60 const vpx_prob *prob; local 117 prob = coef_probs[band][ctx]; 120 if (!vpx_read(r, prob[EOB_CONTEXT_NODE])) { 125 while (!vpx_read(r, prob[ZERO_CONTEXT_NODE])) { 134 prob = coef_probs[band][ctx]; 137 if (!vpx_read(r, prob[ONE_CONTEXT_NODE])) { 144 vp9_pareto8_full[prob[PIVOT_NODE] - 1]);
|
/external/libnl/lib/route/sch/ |
H A D | netem.c | 395 * @arg prob New re-ordering probability. 398 int rtnl_netem_set_reorder_probability(struct rtnl_qdisc *qdisc, int prob) argument 406 netem->qnm_ro.nmro_probability = prob; 431 * @arg prob New re-ordering correlation probability. 434 int rtnl_netem_set_reorder_correlation(struct rtnl_qdisc *qdisc, int prob) argument 442 netem->qnm_ro.nmro_correlation = prob; 474 * @arg prob New corruption probability. 477 int rtnl_netem_set_corruption_probability(struct rtnl_qdisc *qdisc, int prob) argument 485 netem->qnm_crpt.nmcr_probability = prob; 510 * @arg prob Ne 513 rtnl_netem_set_corruption_correlation(struct rtnl_qdisc *qdisc, int prob) argument 556 rtnl_netem_set_loss(struct rtnl_qdisc *qdisc, int prob) argument 592 rtnl_netem_set_loss_correlation(struct rtnl_qdisc *qdisc, int prob) argument 635 rtnl_netem_set_duplicate(struct rtnl_qdisc *qdisc, int prob) argument 671 rtnl_netem_set_duplicate_correlation(struct rtnl_qdisc *qdisc, int prob) argument 785 rtnl_netem_set_delay_correlation(struct rtnl_qdisc *qdisc, int prob) argument [all...] |