Home
last modified time | relevance | path

Searched refs:gauss (Results 1 - 11 of 11) sorted by relevance

/third_party/skia/src/core/
H A DSkGaussFilter.cpp18 // Normalize the values of gauss to 1.0, and make sure they add to one.
19 // NB if n == 1, then this will force gauss[0] == 1.
20 static void normalize(int n, double* gauss) { in normalize() argument
24 sum += 2 * gauss[i]; in normalize()
26 sum += gauss[0]; in normalize()
28 // Normalize gauss. in normalize()
30 gauss[i] /= sum; in normalize()
33 // The factors should sum to 1. Take any remaining slop, and add it to gauss[0]. Add the in normalize()
37 sum += 2 * gauss[i]; in normalize()
40 gauss[ in normalize()
43 calculate_bessel_factors(double sigma, double *gauss) calculate_bessel_factors() argument
[all...]
H A DSkMaskBlurFilter.cpp595 uint16_t* gauss,
599 Sk8h g0{gauss[0]},
600 g1{gauss[1]},
601 g2{gauss[2]},
602 g3{gauss[3]},
603 g4{gauss[4]};
613 static void direct_blur_x(int radius, uint16_t* gauss,
619 blur_x_rect(blur_x_radius_1, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH);
623 blur_x_rect(blur_x_radius_2, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH);
627 blur_x_rect(blur_x_radius_3, gauss, sr
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_colorconstancy.c89 double *gauss[MAX_DIFF_ORD+1]; member
100 * Sets gauss filters used for calculating gauss derivatives. Filter size
121 s->gauss[i] = av_calloc(filtersize, sizeof(*s->gauss[i])); in set_gauss()
122 if (!s->gauss[i]) { in set_gauss()
124 av_freep(&s->gauss[i]); in set_gauss()
131 av_log(ctx, AV_LOG_TRACE, "Setting 0-d gauss with filtersize = %d.\n", filtersize); in set_gauss()
134 s->gauss[0][0] = 1; // Copying data to double instead of convolution in set_gauss()
137 s->gauss[ in set_gauss()
262 const double *gauss = s->gauss[ord]; slice_get_derivative() local
[all...]
/third_party/skia/tests/
H A DSkGaussFilterTest.cpp18 static double careful_add(int n, double* gauss) { in careful_add() argument
22 sum += 2.0 * gauss[i]; in careful_add()
24 sum += gauss[0]; in careful_add()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
H A Dfunctions.hpp31 /// 1D gauss function
35 GLM_FUNC_DECL T gauss(
40 /// 2D gauss function
44 GLM_FUNC_DECL T gauss(
/third_party/ltp/testcases/misc/math/fptests/
H A Dfptest01.c80 static double gauss(void);
94 int gcount; /* # calls to gauss */
274 return (gauss()); in dtwork()
351 static double gauss(void) in gauss() function
H A Dfptest02.c30 * math in routine "gauss". The value "avgspd" computed in routine
80 static double gauss(void);
255 return (gauss()); in dtwork()
333 static double gauss(void) in gauss() function
/third_party/python/Lib/
H A Drandom.py75 "gauss",
565 def gauss(self, mu=0.0, sigma=1.0): member in Random
847 gauss = _inst.gauss variable
891 _test_generator(N, gauss, (0.0, 1.0))
H A Dstatistics.py1194 gauss = random.gauss if seed is None else random.Random(seed).gauss
1196 return [gauss(mu, sigma) for i in range(n)]
/third_party/python/Lib/test/
H A Dtest_random.py345 # by (and only by) the .gauss() method.
350 y1 = self.gen.gauss(0, 1)
354 y2 = self.gen.gauss(0, 1)
429 self.assertIsInstance(self.gen.gauss(), float)
1015 g.random = x[:].pop; g.gauss(0.0, 1.0)
1065 (g.gauss, (10.0, 0.0), 10.0),
H A Dtest_math.py703 from random import random, gauss, shuffle namespace
708 v = gauss(0, random()) ** 7 - s

Completed in 12 milliseconds