Home
last modified time | relevance | path

Searched refs:prob (Results 1 – 25 of 104) sorted by relevance

12345

/external/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/
Deval.pass.cpp36 std::vector<double> prob = d.probabilities(); in main() local
38 assert((double)u[i]/N == prob[i]); in main()
54 std::vector<double> prob = d.probabilities(); in main() local
56 assert((double)u[i]/N == prob[i]); in main()
72 std::vector<double> prob = d.probabilities(); in main() local
74 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in main()
90 std::vector<double> prob = d.probabilities(); in main() local
91 assert((double)u[0]/N == prob[0]); in main()
92 assert((double)u[1]/N == prob[1]); in main()
108 std::vector<double> prob = d.probabilities(); in main() local
[all …]
/external/deqp/modules/glshared/
DglsLongStressCase.hpp236 …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/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/
Deval.pass.cpp49 std::vector<double> prob(std::begin(p), std::end(p)); in main() local
50 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in main()
51 for (int i = 0; i < prob.size(); ++i) in main()
52 prob[i] /= s; in main()
60 if (prob[i] == 0) in main()
64 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in main()
109 std::vector<double> prob(std::begin(p), std::end(p)); in main() local
110 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in main()
111 for (int i = 0; i < prob.size(); ++i) in main()
112 prob[i] /= s; in main()
[all …]
Deval_param.pass.cpp51 std::vector<double> prob(std::begin(p), std::end(p)); in main() local
52 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in main()
53 for (int i = 0; i < prob.size(); ++i) in main()
54 prob[i] /= s; in main()
62 if (prob[i] == 0) in main()
66 assert(std::abs((double)Ni/N - prob[i]) / prob[i] < .01); in main()
/external/chromium_org/third_party/lzma_sdk/
DLzmaDec.c155 CLzmaProb *prob; in LzmaDec_DecodeReal() local
160 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; in LzmaDec_DecodeReal()
161 IF_BIT_0(prob) in LzmaDec_DecodeReal()
164 UPDATE_0(prob); in LzmaDec_DecodeReal()
165 prob = probs + Literal; in LzmaDec_DecodeReal()
167 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + in LzmaDec_DecodeReal()
174 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100); in LzmaDec_DecodeReal()
188 probLit = prob + offs + bit + symbol; in LzmaDec_DecodeReal()
199 UPDATE_1(prob); in LzmaDec_DecodeReal()
200 prob = probs + IsRep + state; in LzmaDec_DecodeReal()
[all …]
DBcj2.c61 CProb *prob; in Bcj2_Decode() local
85 prob = p + prevByte; in Bcj2_Decode()
87 prob = p + 256; in Bcj2_Decode()
89 prob = p + 257; in Bcj2_Decode()
91 IF_BIT_0(prob) in Bcj2_Decode()
93 UPDATE_0(prob) in Bcj2_Decode()
100 UPDATE_1(prob) in Bcj2_Decode()
/external/chromium_org/third_party/ots/third_party/lzma_sdk/
DLzmaDec.c156 CLzmaProb *prob; in LzmaDec_DecodeReal() local
161 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; in LzmaDec_DecodeReal()
162 IF_BIT_0(prob) in LzmaDec_DecodeReal()
165 UPDATE_0(prob); in LzmaDec_DecodeReal()
166 prob = probs + Literal; in LzmaDec_DecodeReal()
168 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + in LzmaDec_DecodeReal()
175 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100); in LzmaDec_DecodeReal()
189 probLit = prob + offs + bit + symbol; in LzmaDec_DecodeReal()
200 UPDATE_1(prob); in LzmaDec_DecodeReal()
201 prob = probs + IsRep + state; in LzmaDec_DecodeReal()
[all …]
/external/lzma/C/
DLzmaDec.c155 CLzmaProb *prob; in LzmaDec_DecodeReal() local
160 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; in LzmaDec_DecodeReal()
161 IF_BIT_0(prob) in LzmaDec_DecodeReal()
164 UPDATE_0(prob); in LzmaDec_DecodeReal()
165 prob = probs + Literal; in LzmaDec_DecodeReal()
167 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + in LzmaDec_DecodeReal()
174 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100); in LzmaDec_DecodeReal()
188 probLit = prob + offs + bit + symbol; in LzmaDec_DecodeReal()
199 UPDATE_1(prob); in LzmaDec_DecodeReal()
200 prob = probs + IsRep + state; in LzmaDec_DecodeReal()
[all …]
DPpmd.h23 #define PPMD_UPDATE_PROB_0(prob) ((prob) + (1 << PPMD_INT_BITS) - PPMD_GET_MEAN(prob)) argument
24 #define PPMD_UPDATE_PROB_1(prob) ((prob) - PPMD_GET_MEAN(prob)) argument
DBcj2.c61 CProb *prob; in Bcj2_Decode() local
85 prob = p + prevByte; in Bcj2_Decode()
87 prob = p + 256; in Bcj2_Decode()
89 prob = p + 257; in Bcj2_Decode()
91 IF_BIT_0(prob) in Bcj2_Decode()
93 UPDATE_0(prob) in Bcj2_Decode()
100 UPDATE_1(prob) in Bcj2_Decode()
DPpmd7Enc.c117 UInt16 *prob = Ppmd7_GetBinSumm(p); in Ppmd7_EncodeSymbol() local
121 RangeEnc_EncodeBit_0(rc, *prob); in Ppmd7_EncodeSymbol()
122 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob); in Ppmd7_EncodeSymbol()
129 RangeEnc_EncodeBit_1(rc, *prob); in Ppmd7_EncodeSymbol()
130 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob); in Ppmd7_EncodeSymbol()
131 p->InitEsc = PPMD7_kExpEscape[*prob >> 10]; in Ppmd7_EncodeSymbol()
DPpmd7Dec.c122 UInt16 *prob = Ppmd7_GetBinSumm(p); in Ppmd7_DecodeSymbol() local
123 if (rc->DecodeBit(rc, *prob) == 0) in Ppmd7_DecodeSymbol()
126 *prob = (UInt16)PPMD_UPDATE_PROB_0(*prob); in Ppmd7_DecodeSymbol()
131 *prob = (UInt16)PPMD_UPDATE_PROB_1(*prob); in Ppmd7_DecodeSymbol()
132 p->InitEsc = PPMD7_kExpEscape[*prob >> 10]; in Ppmd7_DecodeSymbol()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_detokenize.c77 #define ADJUST_COEF(prob, bits_count) \ argument
79 val += (vp9_read(r, prob) << bits_count); \
93 const vp9_prob *prob; in decode_coefs() local
108 prob = coef_probs[band][ctx]; in decode_coefs()
111 if (!vp9_read(r, prob[EOB_CONTEXT_NODE])) { in decode_coefs()
116 while (!vp9_read(r, prob[ZERO_CONTEXT_NODE])) { in decode_coefs()
125 prob = coef_probs[band][ctx]; in decode_coefs()
129 if (!vp9_read(r, prob[ONE_CONTEXT_NODE])) { in decode_coefs()
136 prob = vp9_pareto8_full[prob[PIVOT_NODE] - 1]; in decode_coefs()
138 if (!vp9_read(r, prob[LOW_VAL_CONTEXT_NODE])) { in decode_coefs()
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/
Dvp9_cost.h22 #define vp9_cost_zero(prob) (vp9_prob_cost[prob]) argument
24 #define vp9_cost_one(prob) vp9_cost_zero(vp9_complement(prob)) argument
26 #define vp9_cost_bit(prob, bit) vp9_cost_zero((bit) ? vp9_complement(prob) \ argument
27 : (prob))
/external/libvpx/libvpx/vp9/encoder/
Dvp9_cost.h22 #define vp9_cost_zero(prob) (vp9_prob_cost[prob]) argument
24 #define vp9_cost_one(prob) vp9_cost_zero(vp9_complement(prob)) argument
26 #define vp9_cost_bit(prob, bit) vp9_cost_zero((bit) ? vp9_complement(prob) \ argument
27 : (prob))
/external/webp/src/dec/
Dtree.c316 const uint8_t* const prob = kBModesProba[top[x]][ymode]; in ParseIntraMode() local
319 int i = kYModesIntra4[VP8GetBit(br, prob[0])]; in ParseIntraMode()
321 i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i])]; in ParseIntraMode()
326 ymode = !VP8GetBit(br, prob[0]) ? B_DC_PRED : in ParseIntraMode()
327 !VP8GetBit(br, prob[1]) ? B_TM_PRED : in ParseIntraMode()
328 !VP8GetBit(br, prob[2]) ? B_VE_PRED : in ParseIntraMode()
329 !VP8GetBit(br, prob[3]) ? in ParseIntraMode()
330 (!VP8GetBit(br, prob[4]) ? B_HE_PRED : in ParseIntraMode()
331 (!VP8GetBit(br, prob[5]) ? B_RD_PRED : B_VR_PRED)) : in ParseIntraMode()
332 (!VP8GetBit(br, prob[6]) ? B_LD_PRED : in ParseIntraMode()
[all …]
/external/chromium_org/third_party/libwebp/dec/
Dtree.c316 const uint8_t* const prob = kBModesProba[top[x]][ymode]; in ParseIntraMode() local
319 int i = kYModesIntra4[VP8GetBit(br, prob[0])]; in ParseIntraMode()
321 i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i])]; in ParseIntraMode()
326 ymode = !VP8GetBit(br, prob[0]) ? B_DC_PRED : in ParseIntraMode()
327 !VP8GetBit(br, prob[1]) ? B_TM_PRED : in ParseIntraMode()
328 !VP8GetBit(br, prob[2]) ? B_VE_PRED : in ParseIntraMode()
329 !VP8GetBit(br, prob[3]) ? in ParseIntraMode()
330 (!VP8GetBit(br, prob[4]) ? B_HE_PRED : in ParseIntraMode()
331 (!VP8GetBit(br, prob[5]) ? B_RD_PRED : B_VR_PRED)) : in ParseIntraMode()
332 (!VP8GetBit(br, prob[6]) ? B_LD_PRED : in ParseIntraMode()
[all …]
/external/chromium_org/third_party/libwebp/enc/
Dtree.c271 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/webp/src/enc/
Dtree.c271 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/SevenZip/Compression/RangeCoder/
DDecoder.java56 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()
DEncoder.java104 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/sch/
Dnetem.c398 int rtnl_netem_set_reorder_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_probability() argument
406 netem->qnm_ro.nmro_probability = prob; in rtnl_netem_set_reorder_probability()
434 int rtnl_netem_set_reorder_correlation(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_correlation() argument
442 netem->qnm_ro.nmro_correlation = prob; in rtnl_netem_set_reorder_correlation()
477 int rtnl_netem_set_corruption_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_corruption_probability() argument
485 netem->qnm_crpt.nmcr_probability = prob; in rtnl_netem_set_corruption_probability()
513 int rtnl_netem_set_corruption_correlation(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_corruption_correlation() argument
521 netem->qnm_crpt.nmcr_correlation = prob; in rtnl_netem_set_corruption_correlation()
556 int rtnl_netem_set_loss(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_loss() argument
564 netem->qnm_loss = prob; in rtnl_netem_set_loss()
[all …]
/external/iproute2/tc/
Dtc_red.c30 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/
Dencodemv.c29 const vp8_prob *p = mvc->prob; in encode_mvcomponent()
102 const vp8_prob *p = mvc->prob; in cost_mvcomponent()
156 mvcost [0] [i] = cost0 + vp8_cost_zero(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table()
157 mvcost [0] [-i] = cost0 + vp8_cost_one(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table()
172 mvcost [1] [i] = cost1 + vp8_cost_zero(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table()
173 mvcost [1] [-i] = cost1 + vp8_cost_one(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table()
233 vp8_prob *Pcur = cur_mvc->prob; in write_component_probs()
234 const vp8_prob *default_mvc = default_mvc_->prob; in write_component_probs()
235 const vp8_prob *Pupdate = update_mvc->prob; in write_component_probs()
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/encoder/
Dencodemv.c29 const vp8_prob *p = mvc->prob; in encode_mvcomponent()
102 const vp8_prob *p = mvc->prob; in cost_mvcomponent()
156 mvcost [0] [i] = cost0 + vp8_cost_zero(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table()
157 mvcost [0] [-i] = cost0 + vp8_cost_one(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table()
172 mvcost [1] [i] = cost1 + vp8_cost_zero(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table()
173 mvcost [1] [-i] = cost1 + vp8_cost_one(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table()
233 vp8_prob *Pcur = cur_mvc->prob; in write_component_probs()
234 const vp8_prob *default_mvc = default_mvc_->prob; in write_component_probs()
235 const vp8_prob *Pupdate = update_mvc->prob; in write_component_probs()

12345