Home
last modified time | relevance | path

Searched refs:fsum (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Lib/
H A Dstatistics.py139 from math import hypot, sqrt, fabs, exp, erf, tau, log, fsum namespace
456 total = fsum(data)
465 num = fsum(map(mul, data, weights))
468 den = fsum(weights)
985 xbar = fsum(x) / n
986 ybar = fsum(y) / n
987 sxy = fsum((xi - xbar) * (yi - ybar) for xi, yi in zip(x, y))
1013 xbar = fsum(x) / n
1014 ybar = fsum(y) / n
1015 sxy = fsum((x
[all...]
/third_party/ffmpeg/libavcodec/ppc/
H A Dh264chroma_template.c41 OP_U8_ALTIVEC(fsum, vfdst, vdst);\
43 vec_st(fsum, 0, dst);\
64 OP_U8_ALTIVEC(fsum, vfdst, vdst);\
66 vec_st(fsum, 0, dst);\
137 vec_u8 vdst, ppsum, vfdst, fsum; in PREFIX_h264_chroma_mc8_altivec() local
212 vec_u8 vdst, ppsum, vfdst, fsum; in PREFIX_no_rnd_vc1_chroma_mc8_altivec() local
H A Dh264qpel_template.c128 vec_u8 sum, fsum; in PREFIX_h264_qpel16_h_lowpass_altivec() local
183 OP_U8_ALTIVEC(fsum, sum, vec_ld(0, dst)); in PREFIX_h264_qpel16_h_lowpass_altivec()
185 vec_st(fsum, 0, dst); in PREFIX_h264_qpel16_h_lowpass_altivec()
240 vec_u8 sum, fsum, srcP3; in PREFIX_h264_qpel16_v_lowpass_altivec() local
286 OP_U8_ALTIVEC(fsum, sum, vec_ld(0, dst)); in PREFIX_h264_qpel16_v_lowpass_altivec()
288 vec_st(fsum, 0, dst); in PREFIX_h264_qpel16_v_lowpass_altivec()
333 vec_u8 fsum, sumv, sum; in PREFIX_h264_qpel16_hv_lowpass_altivec() local
476 OP_U8_ALTIVEC(fsum, sum, vec_ld(0, dst)); in PREFIX_h264_qpel16_hv_lowpass_altivec()
478 vec_st(fsum, 0, dst); in PREFIX_h264_qpel16_hv_lowpass_altivec()
/third_party/python/Lib/test/
H A Dtest_statistics.py1232 # Compare with the math.fsum function.
1236 self.assertApproxEqual(float(self.func(data)[1]), math.fsum(data), rel=2e-16)
1920 # Rules for special values are inherited from math.fsum()
2322 # Rules for special values are inherited from math.fsum()
2838 fsum = math.fsum
2846 total = max(fsum(xp), fsum(yp))
2847 return fsum(map(min, xp, yp)) / total
H A Dtest_random.py11 from math import log, exp, pi, fsum, sin, factorial namespace
992 return az ** (z-0.5) / exp(az) * sqrt2pi * fsum([
H A Dtest_math.py24 # detect evidence of double-rounding: fsum is not always correctly
621 "fsum is not exact on machines with double rounding")
623 # math.fsum relies on exact rounding for correct operation.
626 # math.fsum tests below to fail; see issue #2937. On non IEEE
631 # Python version of math.fsum, for comparison. Uses a
694 actual = math.fsum(vals)
697 "for math.fsum(%.100r)" % (i, expected, vals))
700 "for math.fsum(%.100r)" % (i, expected, vals))
714 self.assertEqual(msum(vals), math.fsum(vals))

Completed in 12 milliseconds