Home
last modified time | relevance | path

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

12345678910

/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.c57 #define NORMAL_LITER_DEC TREE_GET_BIT(prob, symbol)
62 probLit = prob + (offs + bit + symbol); \
241 CLzmaProb *prob; in LZMA_DECODE_REAL() local
246 prob = probs + IsMatch + COMBINED_PS_STATE; in LZMA_DECODE_REAL()
247 IF_BIT_0(prob) in LZMA_DECODE_REAL()
250 UPDATE_0(prob); in LZMA_DECODE_REAL()
251 prob = probs + Literal; in LZMA_DECODE_REAL()
253prob += (UInt32)3 * ((((processedPos << 8) + dic[(dicPos == 0 ? dicBufSize : dicPos) - 1]) & lpMas… in LZMA_DECODE_REAL()
308 UPDATE_1(prob); in LZMA_DECODE_REAL()
309 prob = probs + IsRep + state; in LZMA_DECODE_REAL()
[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
DLzmaEnc.c629 #define RC_BIT_PRE(p, prob) \ argument
630 ttt = *(prob); \
637 #define RC_BIT(p, prob, bit) { \ argument
638 RC_BIT_PRE(p, prob) \
641 *(prob) = (CLzmaProb)ttt; \
647 #define RC_BIT(p, prob, bit) { \ argument
649 RC_BIT_PRE(p, prob) \
660 *(prob) = (CLzmaProb)ttt; \
669 #define RC_BIT_0_BASE(p, prob) \ argument
670 range = newBound; *(prob) = (CLzmaProb)(ttt + ((kBitModelTotal - ttt) >> kNumMoveBits));
[all …]
/external/u-boot/lib/lzma/
DLzmaDec.c160 CLzmaProb *prob; in LzmaDec_DecodeReal() local
165 prob = probs + IsMatch + (state << kNumPosBitsMax) + posState; in LzmaDec_DecodeReal()
166 IF_BIT_0(prob) in LzmaDec_DecodeReal()
169 UPDATE_0(prob); in LzmaDec_DecodeReal()
170 prob = probs + Literal; in LzmaDec_DecodeReal()
172 prob += (LZMA_LIT_SIZE * (((processedPos & lpMask) << lc) + in LzmaDec_DecodeReal()
182 do { GET_BIT(prob + symbol, symbol) } while (symbol < 0x100); in LzmaDec_DecodeReal()
199 probLit = prob + offs + bit + symbol; in LzmaDec_DecodeReal()
210 UPDATE_1(prob); in LzmaDec_DecodeReal()
211 prob = probs + IsRep + state; in LzmaDec_DecodeReal()
[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/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/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/tensorflow/tensorflow/python/kernel_tests/distributions/
Dcategorical_test.py104 dist.logits.dtype, dist.prob(np.array(
134 self.assertAllClose(dist.prob([0, 1]).eval(), [0.2, 0.4])
141 self.assertAllClose(dist.prob(0).eval(), 0.2)
290 "cat_prob": cat.prob(disc_event_tf),
294 "norm_prob": norm.prob(real_event_tf),
388 prob = dist.prob(samples)
389 prob_val = self.evaluate(prob)
410 prob = dist.prob(1)
411 self.assertAllClose([[0.8, 0.6]], self.evaluate(prob))
413 prob = dist.prob([1])
[all …]
Ddirichlet_multinomial_test.py84 dist.prob([2., 3, 0]).eval()
85 dist.prob([3., 0, 2]).eval()
87 dist.prob([-1., 4, 2]).eval()
90 dist.prob([3., 3, 0]).eval()
98 dist.prob([2., 3, 0]).eval()
99 dist.prob([3., 0, 2]).eval()
100 dist.prob([3.0, 0, 2.0]).eval()
105 dist.prob(placeholder).eval(feed_dict={placeholder: [1.0, 2.5, 1.5]})
107 dist.prob([1., 2., 3.]).eval()
109 dist.prob([1.0, 2.5, 1.5]).eval()
[all …]
Dmultinomial_test.py101 dist.prob([2., 3, 0]).eval()
102 dist.prob([3., 0, 2]).eval()
104 dist.prob([-1., 4, 2]).eval()
106 dist.prob([3., 3, 0]).eval()
116 multinom.prob([2., 1, 2]).eval()
117 multinom.prob([3., 0, 2]).eval()
120 multinom.prob([2., 3, 2]).eval()
125 multinom.prob(x).eval(feed_dict={x: [1.0, 2.5, 1.5]})
129 multinom.prob([1., 2., 2.]).eval()
131 multinom.prob([1.0, 2.5, 1.5]).eval()
[all …]
/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/xz-java/src/org/tukaani/xz/rangecoder/
DRangeEncoder.java101 int prob = probs[index]; in encodeBit() local
102 int bound = (range >>> BIT_MODEL_TOTAL_BITS) * prob; in encodeBit()
108 prob + ((BIT_MODEL_TOTAL - prob) >>> MOVE_BITS)); in encodeBit()
112 probs[index] = (short)(prob - (prob >>> MOVE_BITS)); in encodeBit()
121 public static int getBitPrice(int prob, int bit) { in getBitPrice() argument
124 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/libaom/libaom/aom_dsp/
Dbuf_ans.h37 unsigned int prob : RANS_PROB_BITS; // Probability of this symbol member
78 AnsP8 prob) { in buf_rabs_write() argument
87 c->buf[c->offset].prob = prob; in buf_rabs_write()
100 aom_cdf_prob cum_prob, aom_cdf_prob prob) { in buf_rans_write() argument
109 c->buf[c->offset].prob = prob; in buf_rans_write()
/external/lzma/Asm/x86/
DLzmaDecOpt.asm67 ; x1 pbPos / (prob) TREE
220 NORM_CALC macro prob:req
224 imul range, prob
231 PUP macro prob:req, probPtr:req
232 sub t0, prob
233 ; only sar works for both 16/32 bit prob modes
235 add t0, prob
240 PUP_SUB macro prob:req, probPtr:req, symSub:req
242 PUP prob, probPtr
246 PUP_COD macro prob:req, probPtr:req, symSub:req
[all …]
/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 …]

12345678910