Home
last modified time | relevance | path

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

1234567

/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Ddeterministic_test.py47 deterministic.prob(0.).eval()
52 self.assertAllClose(1, deterministic.prob(0).eval())
53 self.assertAllClose(0, deterministic.prob(2).eval())
54 self.assertAllClose([1, 0], deterministic.prob([0, 2]).eval())
59 self.assertAllClose(1., deterministic.prob(0.).eval())
60 self.assertAllClose(0., deterministic.prob(2.).eval())
61 self.assertAllClose([1., 0.], deterministic.prob([0., 2.]).eval())
69 prob = deterministic.prob(x)
70 self.assertAllEqual((2, 2), prob.get_shape())
71 self.assertAllEqual(expected_prob, prob.eval())
[all …]
Dbinomial_test.py79 binom.prob([2., 3, 2]).eval()
80 binom.prob([3., 1, 2]).eval()
84 binom.prob([-1., 4, 2]).eval()
86 binom.prob([7., 3, 0]).eval()
98 binom.prob([2., 3, 2]).eval()
99 binom.prob([3., 1, 2]).eval()
106 binom.prob(placeholder).eval(feed_dict={placeholder: [1.0, 2.5, 1.5]})
112 binom.prob([1., 2., 3.]).eval()
115 binom.prob([1.0, 2.5, 1.5]).eval()
124 pmf = binom.prob(counts)
[all …]
Dvector_student_t_test.py68 def prob(self, x): member in _FakeVectorStudentT
96 self.assertAllClose(expected_mst.prob(x),
97 actual_mst.prob(x).eval(),
125 self.assertAllClose(expected_mst.prob(x),
126 actual_mst.prob(x).eval(),
158 self.assertAllClose(expected_mst.prob(x),
159 actual_mst.prob(x).eval(feed_dict=feed_dict),
189 self.assertAllClose(expected_mst.prob(x),
190 actual_mst.prob(x).eval(),
224 self.assertAllClose(expected_mst.prob(x),
[all …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/
Deval.pass.cpp38 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 …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/
Deval.pass.cpp52 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 …]
Deval_param.pass.cpp55 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/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/lzma/C/
DLzmaDec.c49 #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 …]
DPpmd.h22 #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
DPpmd7Enc.c119 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()
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dcategorical_test.py98 dist.logits.dtype, dist.prob(np.array(
126 self.assertAllClose(dist.prob([0, 1]).eval(), [0.2, 0.4])
132 self.assertAllClose(dist.prob(0).eval(), 0.2)
262 "cat_prob": cat.prob(disc_event_tf),
266 "norm_prob": norm.prob(real_event_tf),
356 prob = dist.prob(samples)
357 prob_val = prob.eval()
369 prob = dist.prob(1)
370 self.assertAllClose([[0.8, 0.6]], prob.eval())
372 prob = dist.prob([1])
[all …]
Ddirichlet_multinomial_test.py75 dist.prob([2., 3, 0]).eval()
76 dist.prob([3., 0, 2]).eval()
78 dist.prob([-1., 4, 2]).eval()
81 dist.prob([3., 3, 0]).eval()
88 dist.prob([2., 3, 0]).eval()
89 dist.prob([3., 0, 2]).eval()
90 dist.prob([3.0, 0, 2.0]).eval()
95 dist.prob(placeholder).eval(feed_dict={placeholder: [1.0, 2.5, 1.5]})
97 dist.prob([1., 2., 3.]).eval()
99 dist.prob([1.0, 2.5, 1.5]).eval()
[all …]
Dmultinomial_test.py91 dist.prob([2., 3, 0]).eval()
92 dist.prob([3., 0, 2]).eval()
94 dist.prob([-1., 4, 2]).eval()
96 dist.prob([3., 3, 0]).eval()
105 multinom.prob([2., 1, 2]).eval()
106 multinom.prob([3., 0, 2]).eval()
109 multinom.prob([2., 3, 2]).eval()
114 multinom.prob(x).eval(feed_dict={x: [1.0, 2.5, 1.5]})
118 multinom.prob([1., 2., 2.]).eval()
120 multinom.prob([1.0, 2.5, 1.5]).eval()
[all …]
Ddirichlet_test.py75 dist.prob([.1, .3, .6]).eval()
76 dist.prob([.2, .3, .5]).eval()
79 dist.prob([-1., 1.5, 0.5]).eval()
81 dist.prob([0., .1, .9]).eval()
84 dist.prob([.1, .2, .8]).eval()
91 pdf = dist.prob(x)
100 pdf = dist.prob(x)
110 pdf = dist.prob(x)
119 pdf = dist.prob(x)
127 pdf = dirichlet_lib.Dirichlet(alpha).prob(x)
[all …]
/external/webp/src/dec/
Dtree_dec.c323 const uint8_t* const prob = kBModesProba[top[x]][ymode]; in ParseIntraMode() local
326 int i = kYModesIntra4[VP8GetBit(br, prob[0])]; in ParseIntraMode()
328 i = kYModesIntra4[2 * i + VP8GetBit(br, prob[i])]; in ParseIntraMode()
333 ymode = !VP8GetBit(br, prob[0]) ? B_DC_PRED : in ParseIntraMode()
334 !VP8GetBit(br, prob[1]) ? B_TM_PRED : in ParseIntraMode()
335 !VP8GetBit(br, prob[2]) ? B_VE_PRED : in ParseIntraMode()
336 !VP8GetBit(br, prob[3]) ? in ParseIntraMode()
337 (!VP8GetBit(br, prob[4]) ? B_HE_PRED : in ParseIntraMode()
338 (!VP8GetBit(br, prob[5]) ? B_RD_PRED : B_VR_PRED)) : in ParseIntraMode()
339 (!VP8GetBit(br, prob[6]) ? B_LD_PRED : in ParseIntraMode()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/base/
DCharMatcherBenchmark.java169 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/libvpx/libvpx/vp9/encoder/
Dvp9_cost.h26 #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
/external/webp/src/enc/
Dtree_enc.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/Tukaani/src/org/tukaani/xz/rangecoder/
DRangeEncoder.java105 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()
DRangeDecoder.java25 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()
/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/qdisc/
Dnetem.c373 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/libvpx/libvpx/vp8/encoder/
Dencodemv.c25 const vp8_prob *p = mvc->prob; in encode_mvcomponent()
91 const vp8_prob *p = mvc->prob; in cost_mvcomponent()
138 mvcost[0][i] = cost0 + vp8_cost_zero(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table()
139 mvcost[0][-i] = cost0 + vp8_cost_one(mvc[0].prob[MVPsign]); in vp8_build_component_cost_table()
151 mvcost[1][i] = cost1 + vp8_cost_zero(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table()
152 mvcost[1][-i] = cost1 + vp8_cost_one(mvc[1].prob[MVPsign]); in vp8_build_component_cost_table()
197 vp8_prob *Pcur = cur_mvc->prob; in write_component_probs()
198 const vp8_prob *default_mvc = default_mvc_->prob; in write_component_probs()
199 const vp8_prob *Pupdate = update_mvc->prob; in write_component_probs()
/external/iproute2/tc/
Dtc_red.c30 int tc_red_eval_P(unsigned int qmin, unsigned int 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()

1234567