/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ |
D | eval.pass.cpp | 38 std::vector<double> prob = d.probabilities(); in main() local 40 assert((double)u[i]/N == prob[i]); in main() 56 std::vector<double> prob = d.probabilities(); in main() local 58 assert((double)u[i]/N == prob[i]); in main() 74 std::vector<double> prob = d.probabilities(); in main() local 76 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in main() 92 std::vector<double> prob = d.probabilities(); in main() local 93 assert((double)u[0]/N == prob[0]); in main() 94 assert((double)u[1]/N == prob[1]); in main() 110 std::vector<double> prob = d.probabilities(); in main() local [all …]
|
D | eval_param.pass.cpp | 41 std::vector<double> prob = p.probabilities(); in main() local 43 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in main()
|
/external/deqp/modules/glshared/ |
D | glsLongStressCase.hpp | 236 …FeatureProbabilities& pRebuildProgram (const float prob) { rebuildProgram = prob; return *t… in pRebuildProgram() 237 …FeatureProbabilities& pReuploadTexture (const float prob) { reuploadTexture = prob; return *… in pReuploadTexture() 238 …FeatureProbabilities& pReuploadBuffer (const float prob) { reuploadBuffer = prob; return *t… in pReuploadBuffer() 239 …FeatureProbabilities& pReuploadWithTexImage (const float prob) { reuploadWithTexImage = prob; … in pReuploadWithTexImage() 240 …tureProbabilities& pReuploadWithBufferData (const float prob) { reuploadWithBufferData = prob; … in pReuploadWithBufferData() 241 …FeatureProbabilities& pDeleteTexture (const float prob) { deleteTexture = prob; return *thi… in pDeleteTexture() 242 …FeatureProbabilities& pDeleteBuffer (const float prob) { deleteBuffer = prob; return *this… in pDeleteBuffer() 243 …robabilities& pWastefulTextureMemoryUsage (const float prob) { wastefulTextureMemoryUsage = prob;… in pWastefulTextureMemoryUsage() 244 …eProbabilities& pWastefulBufferMemoryUsage (const float prob) { wastefulBufferMemoryUsage = prob;… in pWastefulBufferMemoryUsage() 245 …eProbabilities& pClientMemoryAttributeData (const float prob) { clientMemoryAttributeData = prob;… in pClientMemoryAttributeData() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ |
D | eval.pass.cpp | 52 std::vector<double> prob(std::begin(p), std::end(p)); in test1() local 53 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test1() 54 for (std::size_t i = 0; i < prob.size(); ++i) in test1() 55 prob[i] /= s; in test1() 63 if (prob[i] == 0) in test1() 67 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in test1() 115 std::vector<double> prob(std::begin(p), std::end(p)); in test2() local 116 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test2() 117 for (std::size_t i = 0; i < prob.size(); ++i) in test2() 118 prob[i] /= s; in test2() [all …]
|
D | eval_param.pass.cpp | 55 std::vector<double> prob(std::begin(p), std::end(p)); in main() local 56 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in main() 57 for (std::size_t i = 0; i < prob.size(); ++i) in main() 58 prob[i] /= s; in main() 66 if (prob[i] == 0) in main() 70 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in main()
|
/external/lzma/C/ |
D | LzmaDec.c | 49 #define NORMAL_LITER_DEC GET_BIT(prob + symbol, symbol) 53 probLit = prob + offs + bit + symbol; \ 164 CLzmaProb *prob; in LzmaDec_DecodeReal() local 169 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; in LzmaDec_DecodeReal() 170 IF_BIT_0(prob) in LzmaDec_DecodeReal() 173 UPDATE_0(prob); in LzmaDec_DecodeReal() 174 prob = probs + Literal; in LzmaDec_DecodeReal() 176 prob += ((UInt32)LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + in LzmaDec_DecodeReal() 232 UPDATE_1(prob); in LzmaDec_DecodeReal() 233 prob = probs + IsRep + state; in LzmaDec_DecodeReal() [all …]
|
D | Ppmd.h | 22 #define PPMD_UPDATE_PROB_0(prob) ((prob) + (1 << PPMD_INT_BITS) - PPMD_GET_MEAN(prob)) argument 23 #define PPMD_UPDATE_PROB_1(prob) ((prob) - PPMD_GET_MEAN(prob)) argument
|
D | Ppmd7Enc.c | 119 UInt16 *prob = Ppmd7_GetBinSumm(p); in Ppmd7_EncodeSymbol() local 123 RangeEnc_EncodeBit_0(rc, *prob); in Ppmd7_EncodeSymbol() 124 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob); in Ppmd7_EncodeSymbol() 131 RangeEnc_EncodeBit_1(rc, *prob); in Ppmd7_EncodeSymbol() 132 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob); in Ppmd7_EncodeSymbol() 133 p->InitEsc = PPMD7_kExpEscape[*prob >> 10]; in Ppmd7_EncodeSymbol()
|
D | Ppmd7Dec.c | 124 UInt16 *prob = Ppmd7_GetBinSumm(p); in Ppmd7_DecodeSymbol() local 125 if (rc->DecodeBit(rc, *prob) == 0) in Ppmd7_DecodeSymbol() 128 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob); in Ppmd7_DecodeSymbol() 133 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob); in Ppmd7_DecodeSymbol() 134 p->InitEsc = PPMD7_kExpEscape[*prob >> 10]; in Ppmd7_DecodeSymbol()
|
/external/webp/src/dec/ |
D | tree_dec.c | 319 const uint8_t* const prob = kBModesProba[top[x]][ymode]; in ParseIntraMode() local 322 int i = kYModesIntra4[VP8GetBit(br, prob[0])]; in ParseIntraMode() 324 i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i])]; in ParseIntraMode() 329 ymode = !VP8GetBit(br, prob[0]) ? B_DC_PRED : in ParseIntraMode() 330 !VP8GetBit(br, prob[1]) ? B_TM_PRED : in ParseIntraMode() 331 !VP8GetBit(br, prob[2]) ? B_VE_PRED : in ParseIntraMode() 332 !VP8GetBit(br, prob[3]) ? in ParseIntraMode() 333 (!VP8GetBit(br, prob[4]) ? B_HE_PRED : in ParseIntraMode() 334 (!VP8GetBit(br, prob[5]) ? B_RD_PRED : B_VR_PRED)) : in ParseIntraMode() 335 (!VP8GetBit(br, prob[6]) ? B_LD_PRED : in ParseIntraMode() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_cost.h | 26 #define vp9_cost_zero(prob) (vp9_prob_cost[prob]) argument 28 #define vp9_cost_one(prob) vp9_cost_zero(256 - (prob)) argument 30 #define vp9_cost_bit(prob, bit) vp9_cost_zero((bit) ? 256 - (prob) : (prob)) argument
|
D | vp9_cost.c | 41 const vpx_prob prob = probs[i / 2]; in cost() local 44 assert(prob != 0); in cost() 46 const int cc = c + vp9_cost_bit(prob, b); in cost()
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | CharMatcherBenchmark.java | 169 int r = prob.length - 1; in nextCodePoint() 170 int c = prob.length / 2; in nextCodePoint() 171 int lv = prob[l]; in nextCodePoint() 172 int rv = prob[r]; in nextCodePoint() 173 int cv = prob[c]; in nextCodePoint() 186 cv = prob[c]; in nextCodePoint() 193 cv = prob[c]; in nextCodePoint() 199 private static int[] prob; field in CharMatcherBenchmark.CharSamples 202 prob = new int[10003]; in populateProb1() 919 System.arraycopy(temp, 0, prob, 0, temp.length); in populateProb1() [all …]
|
/external/webp/src/enc/ |
D | tree_enc.c | 271 const uint8_t* const prob) { in PutI4Mode() argument 272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode() 273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode() 274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode() 275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode() 276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode() 277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode() 280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode() 281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode() 282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode()
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/rangecoder/ |
D | RangeDecoder.java | 25 int prob = probs[index]; in decodeBit() local 26 int bound = (range >>> BIT_MODEL_TOTAL_BITS) * prob; in decodeBit() 33 prob + ((BIT_MODEL_TOTAL - prob) >>> MOVE_BITS)); in decodeBit() 38 probs[index] = (short)(prob - (prob >>> MOVE_BITS)); in decodeBit()
|
D | RangeEncoder.java | 105 int prob = probs[index]; in encodeBit() local 106 int bound = (range >>> BIT_MODEL_TOTAL_BITS) * prob; in encodeBit() 112 prob + ((BIT_MODEL_TOTAL - prob) >>> MOVE_BITS)); in encodeBit() 116 probs[index] = (short)(prob - (prob >>> MOVE_BITS)); in encodeBit() 125 public static int getBitPrice(int prob, int bit) { in getBitPrice() argument 128 return prices[(prob ^ ((-bit) & (BIT_MODEL_TOTAL - 1))) in getBitPrice()
|
/external/lzma/Java/SevenZip/Compression/RangeCoder/ |
D | Decoder.java | 56 int prob = probs[index]; in DecodeBit() local 57 int newBound = (Range >>> kNumBitModelTotalBits) * prob; in DecodeBit() 61 probs[index] = (short)(prob + ((kBitModelTotal - prob) >>> kNumMoveBits)); in DecodeBit() 73 probs[index] = (short)(prob - ((prob) >>> kNumMoveBits)); in DecodeBit()
|
D | Encoder.java | 104 int prob = probs[index]; in Encode() local 105 int newBound = (Range >>> kNumBitModelTotalBits) * prob; in Encode() 109 probs[index] = (short)(prob + ((kBitModelTotal - prob) >>> kNumMoveBits)); in Encode() 115 probs[index] = (short)(prob - ((prob) >>> kNumMoveBits)); in Encode()
|
/external/libnl/lib/route/qdisc/ |
D | netem.c | 373 void rtnl_netem_set_reorder_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_probability() argument 380 netem->qnm_ro.nmro_probability = prob; in rtnl_netem_set_reorder_probability() 408 void rtnl_netem_set_reorder_correlation(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_correlation() argument 415 netem->qnm_ro.nmro_correlation = prob; in rtnl_netem_set_reorder_correlation() 450 void rtnl_netem_set_corruption_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_corruption_probability() argument 457 netem->qnm_crpt.nmcr_probability = prob; in rtnl_netem_set_corruption_probability() 485 void rtnl_netem_set_corruption_correlation(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_corruption_correlation() argument 492 netem->qnm_crpt.nmcr_correlation = prob; in rtnl_netem_set_corruption_correlation() 527 void rtnl_netem_set_loss(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_loss() argument 534 netem->qnm_loss = prob; in rtnl_netem_set_loss() [all …]
|
/external/iproute2/tc/ |
D | tc_red.c | 30 int tc_red_eval_P(unsigned qmin, unsigned qmax, double prob) in tc_red_eval_P() argument 37 prob /= i; in tc_red_eval_P() 40 if (prob > 1.0) in tc_red_eval_P() 42 prob *= 2; in tc_red_eval_P()
|
/external/libvpx/libvpx/vp8/encoder/ |
D | encodemv.c | 25 const vp8_prob *p = mvc->prob; in encode_mvcomponent() 93 const vp8_prob *p = mvc->prob; in cost_mvcomponent() 140 mvcost[0][i] = cost0 + vp8_cost_zero(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table() 141 mvcost[0][-i] = cost0 + vp8_cost_one(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table() 153 mvcost[1][i] = cost1 + vp8_cost_zero(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table() 154 mvcost[1][-i] = cost1 + vp8_cost_one(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table() 199 vp8_prob *Pcur = cur_mvc->prob; in write_component_probs() 200 const vp8_prob *default_mvc = default_mvc_->prob; in write_component_probs() 201 const vp8_prob *Pupdate = update_mvc->prob; in write_component_probs()
|
/external/libvpx/libvpx/vpx_dsp/ |
D | prob.h | 72 const vpx_prob prob = get_binary_prob(ct[0], ct[1]); in merge_probs() local 75 return weighted_prob(pre_prob, prob, factor); in merge_probs() 92 const vpx_prob prob = get_prob(ct[0], den); in mode_mv_merge_probs() local 93 return weighted_prob(pre_prob, prob, factor); in mode_mv_merge_probs()
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_detokenize.c | 32 static INLINE int read_bool(vpx_reader *r, int prob, BD_VALUE *value, in read_bool() argument 34 const unsigned int split = (*range * prob + (256 - prob)) >> CHAR_BIT; in read_bool() 85 const vpx_prob *prob; in decode_coefs() local 120 prob = coef_probs[band][ctx]; in decode_coefs() 122 if (!read_bool(r, prob[EOB_CONTEXT_NODE], &value, &count, &range)) { in decode_coefs() 127 while (!read_bool(r, prob[ZERO_CONTEXT_NODE], &value, &count, &range)) { in decode_coefs() 140 prob = coef_probs[band][ctx]; in decode_coefs() 143 if (read_bool(r, prob[ONE_CONTEXT_NODE], &value, &count, &range)) { in decode_coefs() 144 const vpx_prob *p = vp9_pareto8_full[prob[PIVOT_NODE] - 1]; in decode_coefs()
|
/external/v4l2_codec2/vda/ |
D | vp9_compressed_header_parser.cc | 25 Vp9Prob InvRemapProb(uint8_t delta_prob, uint8_t prob) { in InvRemapProb() argument 46 uint8_t m = prob; in InvRemapProb() 93 void Vp9CompressedHeaderParser::DiffUpdateProb(Vp9Prob* prob) { in DiffUpdateProb() argument 97 *prob = InvRemapProb(delta_prob, *prob); in DiffUpdateProb() 242 void Vp9CompressedHeaderParser::UpdateMvProb(Vp9Prob* prob) { in UpdateMvProb() argument 244 *prob = reader_.ReadLiteral(7) << 1 | 1; in UpdateMvProb()
|
/external/toolchain-utils/cros_utils/ |
D | stats.py | 872 prob = betai(0.5 * df, 0.5, df / float(df + t * t)) 873 return r, prob 942 prob = betai(0.5 * df, 0.5, df / (df + t * t)) # t already a float 943 return rpb, prob 977 prob = erfcc(abs(z) / 1.4142136) 978 return tau, prob 1003 prob = betai(0.5 * df, 0.5, df / (df + t * t)) 1007 return slope, intercept, r, prob, sterrest 1030 prob = betai(0.5 * df, 0.5, float(df) / (df + t * t)) 1035 name, n, x, v, min(a), max(a), statname, t, prob) [all …]
|