Home
last modified time | relevance | path

Searched refs:sigma (Results 1 – 25 of 146) sorted by relevance

123456

/external/skia/tests/
DBlurTest.cpp108 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)); in DEF_TEST() local
115 filter = SkBlurMaskFilter::Create(blurStyle, sigma, flags); in DEF_TEST()
162 SkScalar sigma, in ground_truth_2d() argument
173 if (!SkBlurMask::BlurGroundTruth(sigma, &dst, src, kNormal_SkBlurStyle)) { in ground_truth_2d()
203 static float gaussian(int x, SkScalar sigma) { in gaussian() argument
204 float k = SK_Scalar1/(sigma * sqrtf(2.0f*SK_ScalarPI)); in gaussian()
205 float exponent = -(x * x) / (2 * sigma * sigma); in gaussian()
346 SkScalar sigma = 10.0f; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
348 for (int i = 0; i < 4; ++i, sigma /= 10) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
350 cpu_blur_path(rectPath, sigma, rectSpecialCaseResult, kSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DMaskCacheTest.cpp34 SkScalar sigma = 0.8f; in DEF_TEST() local
42 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); in DEF_TEST()
51 SkMaskCache::Add(sigma, style, quality, rrect, mask, data, &cache); in DEF_TEST()
58 data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); in DEF_TEST()
73 SkScalar sigma = 0.8f; in DEF_TEST() local
80 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
89 SkMaskCache::Add(sigma, style, quality, rects, 1, mask, data, &cache); in DEF_TEST()
96 data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
/external/skia/src/effects/
DGrCircleBlurFragmentProcessor.cpp89 float sigma, in GrCircleBlurFragmentProcessor() argument
93 , fSigma(sigma) in GrCircleBlurFragmentProcessor()
129 static void make_half_kernel(float* kernel, int kernelWH, float sigma) { in make_half_kernel() argument
134 float b = 1.0f / (2.0f * sigma * sigma); in make_half_kernel()
181 static inline void compute_profile_offset_and_size(float halfWH, float sigma, in compute_profile_offset_and_size() argument
184 if (3*sigma <= halfWH) { in compute_profile_offset_and_size()
187 *offset = halfWH - 3 * sigma; // This location maps to 0.5f in the weights texture. in compute_profile_offset_and_size()
189 *size = SkScalarCeilToInt(6*sigma); in compute_profile_offset_and_size()
193 *size = SkScalarCeilToInt(halfWH + 3*sigma); in compute_profile_offset_and_size()
197 static uint8_t* create_profile(float halfWH, float sigma) { in create_profile() argument
[all …]
DSkBlurMask.h18 static bool SK_WARN_UNUSED_RESULT BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src,
22 static bool SK_WARN_UNUSED_RESULT BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src,
34 SkScalar sigma, SkBlurStyle style, SkBlurQuality,
40 static bool SK_WARN_UNUSED_RESULT BlurGroundTruth(SkScalar sigma, SkMask* dst,
47 static SkScalar ConvertSigmaToRadius(SkScalar sigma);
66 static uint8_t* ComputeBlurProfile(SkScalar sigma);
78 unsigned int width, SkScalar sigma);
DSkBlurImageFilter.cpp29 SkVector sigma = SkVector::Make(localSigma.width(), localSigma.height()); in map_sigma() local
30 ctm.mapVectors(&sigma, 1); in map_sigma()
31 sigma.fX = SkMinScalar(SkScalarAbs(sigma.fX), MAX_SIGMA); in map_sigma()
32 sigma.fY = SkMinScalar(SkScalarAbs(sigma.fY), MAX_SIGMA); in map_sigma()
33 return sigma; in map_sigma()
95 SkVector sigma = map_sigma(fSigma, ctx.ctm()); in onFilterImageDeprecated() local
99 getBox3Params(sigma.x(), &kernelSizeX, &kernelSizeX3, &lowOffsetX, &highOffsetX); in onFilterImageDeprecated()
100 getBox3Params(sigma.y(), &kernelSizeY, &kernelSizeY3, &lowOffsetY, &highOffsetY); in onFilterImageDeprecated()
196 SkVector sigma = map_sigma(fSigma, ctm); in onFilterNodeBounds() local
197 dst->outset(SkScalarCeilToInt(SkScalarMul(sigma.x(), SkIntToScalar(3))), in onFilterNodeBounds()
[all …]
DSkBlurMaskFilter.cpp41 SkBlurMaskFilterImpl(SkScalar sigma, SkBlurStyle, uint32_t flags);
126 SkMaskFilter* SkBlurMaskFilter::Create(SkBlurStyle style, SkScalar sigma, uint32_t flags) { in Create() argument
127 if (!SkScalarIsFinite(sigma) || sigma <= 0) { in Create()
136 return new SkBlurMaskFilterImpl(sigma, style, flags); in Create()
141 SkBlurMaskFilterImpl::SkBlurMaskFilterImpl(SkScalar sigma, SkBlurStyle style, uint32_t flags) in SkBlurMaskFilterImpl() argument
142 : fSigma(sigma) in SkBlurMaskFilterImpl()
170 SkScalar sigma = this->computeXformedSigma(matrix); in filterMask() local
171 return SkBlurMask::BoxBlur(dst, src, sigma, fBlurStyle, this->getQuality(), margin); in filterMask()
177 SkScalar sigma = computeXformedSigma(matrix); in filterRectMask() local
179 return SkBlurMask::BlurRect(sigma, dst, r, fBlurStyle, margin, createMode); in filterRectMask()
[all …]
DSkDropShadowImageFilter.cpp77 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterImageDeprecated() local
78 ctx.ctm().mapVectors(&sigma, 1); in onFilterImageDeprecated()
79 sigma.fX = SkMaxScalar(0, sigma.fX); in onFilterImageDeprecated()
80 sigma.fY = SkMaxScalar(0, sigma.fY); in onFilterImageDeprecated()
81 SkAutoTUnref<SkImageFilter> blurFilter(SkBlurImageFilter::Create(sigma.fX, sigma.fY)); in onFilterImageDeprecated()
130 SkVector sigma = SkVector::Make(fSigmaX, fSigmaY); in onFilterNodeBounds() local
131 ctm.mapVectors(&sigma, 1); in onFilterNodeBounds()
132 dst->outset(SkScalarCeilToInt(SkScalarMul(sigma.x(), SkIntToScalar(3))), in onFilterNodeBounds()
133 SkScalarCeilToInt(SkScalarMul(sigma.y(), SkIntToScalar(3)))); in onFilterNodeBounds()
DGrCircleBlurFragmentProcessor.h38 const SkRect& circle, float sigma) { in Create() argument
43 sigma, in Create()
48 return new GrCircleBlurFragmentProcessor(circle, sigma, offset, blurProfile); in Create()
52 float sigma() const { return fSigma; } in sigma() function
57 GrCircleBlurFragmentProcessor(const SkRect& circle, float sigma,
74 float sigma, float* offset);
DSkBlurMask.cpp29 SkScalar SkBlurMask::ConvertSigmaToRadius(SkScalar sigma) { in ConvertSigmaToRadius() argument
30 return sigma > 0.5f ? (sigma - 0.5f) / kBLUR_SIGMA_SCALE : 0.0f; in ConvertSigmaToRadius()
483 SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in BoxBlur() argument
491 if (!force_quality && sigma <= SkIntToScalar(2)) { in BoxBlur()
499 passRadius = sigma - (1/6.0f); in BoxBlur()
504 passRadius = 1.5f*sigma - 0.5f; in BoxBlur()
681 uint8_t* SkBlurMask::ComputeBlurProfile(SkScalar sigma) { in ComputeBlurProfile() argument
682 int size = SkScalarCeilToInt(6*sigma); in ComputeBlurProfile()
687 float invr = 1.f/(2*sigma); in ComputeBlurProfile()
717 unsigned int width, SkScalar sigma) { in ComputeBlurredScanline() argument
[all …]
DSkGpuBlurUtils.cpp33 static float adjust_sigma(float sigma, int maxTextureSize, int *scaleFactor, int *radius) { in adjust_sigma() argument
35 while (sigma > MAX_BLUR_SIGMA) { in adjust_sigma()
37 sigma *= 0.5f; in adjust_sigma()
40 sigma = MAX_BLUR_SIGMA; in adjust_sigma()
43 *radius = static_cast<int>(ceilf(sigma * 3.0f)); in adjust_sigma()
45 return sigma; in adjust_sigma()
55 float sigma, in convolve_gaussian_1d() argument
60 texture, direction, radius, sigma, useBounds, bounds)); in convolve_gaussian_1d()
103 float sigma, in convolve_gaussian() argument
110 direction, radius, sigma, false, bounds); in convolve_gaussian()
[all …]
DSkBlurDrawLooper.cpp20 SkBlurDrawLooper::SkBlurDrawLooper(SkColor color, SkScalar sigma, in SkBlurDrawLooper() argument
22 this->init(sigma, dx, dy, color, flags); in SkBlurDrawLooper()
54 void SkBlurDrawLooper::init(SkScalar sigma, SkScalar dx, SkScalar dy, in init() argument
56 fSigma = sigma; in init()
67 const SkScalar sigma = buffer.readScalar(); in CreateProc() local
71 return Create(color, sigma, dx, dy, flags); in CreateProc()
DSkEmbossMaskFilter.cpp79 SkScalar sigma = matrix.mapRadius(fBlurSigma); in filterMask() local
81 if (!SkBlurMask::BoxBlur(dst, src, sigma, kInner_SkBlurStyle, kLow_SkBlurQuality)) { in filterMask()
87 margin->set(SkScalarCeilToInt(3*sigma), SkScalarCeilToInt(3*sigma)); in filterMask()
131 const SkScalar sigma = buffer.readScalar(); in CreateProc() local
132 return Create(sigma, light); in CreateProc()
/external/skia/src/core/
DSkMaskCache.cpp23 RRectBlurKey(SkScalar sigma, const SkRRect& rrect, SkBlurStyle style, SkBlurQuality quality) in RRectBlurKey()
24 : fSigma(sigma) in RRectBlurKey()
77 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in FindAndRef() argument
80 RRectBlurKey key(sigma, rrect, style, quality); in FindAndRef()
90 void SkMaskCache::Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in Add() argument
93 RRectBlurKey key(sigma, rrect, style, quality); in Add()
104 RectsBlurKey(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in RectsBlurKey()
106 : fSigma(sigma) in RectsBlurKey()
172 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in FindAndRef() argument
176 RectsBlurKey key(sigma, style, quality, rects, count); in FindAndRef()
[all …]
DSkMaskCache.h26 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
29 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
36 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
39 static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DValueServer.java79 private double sigma = 0.0; field in ValueServer
196 sigma = empiricalDistribution.getSampleStats().getStandardDeviation(); in computeDistribution()
292 return sigma; in getSigma()
298 public void setSigma(double sigma) { in setSigma() argument
299 this.sigma = sigma; in setSigma()
382 return randomData.nextGaussian(mu, sigma); in getNextGaussian()
/external/ImageMagick/MagickCore/
Dmorphology.c272 args.rho = args.sigma; /* then width = height */ in ParseKernelArray()
275 if ( args.sigma < 1.0 ) /* if height too small */ in ParseKernelArray()
276 args.sigma = args.rho; /* then height = width */ in ParseKernelArray()
278 kernel->height = (size_t)args.sigma; in ParseKernelArray()
418 flags, args.rho, args.sigma, args.xi, args.psi ); in ParseKernelName()
435 args.sigma = 1.0; /* Default scale = 1.0, zero is valid */ in ParseKernelName()
443 args.rho = args.sigma; /* then width = height */ in ParseKernelName()
446 if ( args.sigma < 1.0 ) /* if height too small */ in ParseKernelName()
447 args.sigma = args.rho; /* then height = width */ in ParseKernelName()
451 args.psi = (double)(((ssize_t)args.sigma-1)/2); in ParseKernelName()
[all …]
/external/iproute2/netem/
Dmaketable.c51 arraystats(double *x, int limit, double *mu, double *sigma, double *rho) in arraystats() argument
63 *sigma = sqrt((sumsquare - (double)n*(*mu)*(*mu))/(double)(n-1)); in arraystats()
93 makedist(double *x, int limit, double mu, double sigma) in makedist() argument
107 input = (x[i]-mu)/sigma; in makedist()
200 double mu, sigma, rho; in main() local
219 arraystats(x, limit, &mu, &sigma, &rho); in main()
222 limit, mu, sigma, rho); in main()
225 table = makedist(x, limit, mu, sigma); in main()
/external/v8/test/mjsunit/
Dcyrillic.js43 var sigma = "\u03c3"; variable
53 middle: sigma, // sigma
143 assertFalse(new RegExp(regex).test(sigma), 31 + name);
147 assertTrue(new RegExp(regex, "i").test(sigma), 34 + name);
152 regex = simple ? sigma : "[" + sigma + "]";
154 assertTrue(new RegExp(regex).test(sigma), 41 + name);
158 assertTrue(new RegExp(regex, "i").test(sigma), 44 + name);
165 assertFalse(new RegExp(regex).test(sigma), 51 + name);
170 assertTrue(new RegExp(regex, "i").test(sigma), 54 + name);
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/
DNelderMead.java45 private final double sigma; field in NelderMead
55 this.sigma = 0.5; in NelderMead()
65 final double gamma, final double sigma) { in NelderMead() argument
69 this.sigma = sigma; in NelderMead()
171 x[j] = xSmallest[j] + sigma * (x[j] - xSmallest[j]); in iterateSimplex()
/external/skia/include/effects/
DSkBlurDrawLooper.h38 static SkDrawLooper* Create(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy,
40 return new SkBlurDrawLooper(color, sigma, dx, dy, flags);
53 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy,
84 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags);
/external/eigen/Eigen/src/Cholesky/
DLLT.h174 LLT rankUpdate(const VectorType& vec, const RealScalar& sigma = 1);
197 …_update_lower(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) in llt_rank_update_lower() argument
214 if(sigma>0) in llt_rank_update_lower()
219 temp = sqrt(sigma) * vec; in llt_rank_update_lower()
244 RealScalar swj2 = sigma*numext::abs2(wj); in llt_rank_update_lower()
260 …mat.col(j).tail(rs) = (nLjj/Ljj) * mat.col(j).tail(rs) + (nLjj * sigma*numext::conj(wj)/gamma)*tem… in llt_rank_update_lower()
331 …ename MatrixType::Index rankUpdate(MatrixType& mat, const VectorType& vec, const RealScalar& sigma)
333 return Eigen::internal::llt_rank_update_lower(mat, vec, sigma);
354 …ename MatrixType::Index rankUpdate(MatrixType& mat, const VectorType& vec, const RealScalar& sigma)
357 return llt_inplace<Scalar, Lower>::rankUpdate(matt, vec.conjugate(), sigma);
[all …]
DLLT_MKL.h75 … rankUpdate(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) \
76 { return Eigen::internal::llt_rank_update_lower(mat, vec, sigma); } \
86 … rankUpdate(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) \
89 return llt_inplace<EIGTYPE, Lower>::rankUpdate(matt, vec.conjugate(), sigma); \
/external/boringssl/src/crypto/chacha/
Dchacha_generic.c27 static const uint8_t sigma[16] = { 'e', 'x', 'p', 'a', 'n', 'd', ' ', '3', variable
101 input[0] = U8TO32_LITTLE(sigma + 0); in CRYPTO_chacha_20()
102 input[1] = U8TO32_LITTLE(sigma + 4); in CRYPTO_chacha_20()
103 input[2] = U8TO32_LITTLE(sigma + 8); in CRYPTO_chacha_20()
104 input[3] = U8TO32_LITTLE(sigma + 12); in CRYPTO_chacha_20()
/external/eigen/unsupported/Eigen/src/Eigenvalues/
DArpackSelfAdjointEigenSolver.h374 RealScalar sigma = 0.0; in compute() local
398 sigma = atof(eigs_sigma.c_str()); in compute()
480 if (sigma == 0.0) in compute()
492 AminusSigmaB.coeffRef(i,i) -= sigma; in compute()
498 MatrixType AminusSigmaB = A - sigma * B; in compute()
603 … &sigma, bmat, &n, whch, &nev, &tol, resid, &ncv, in compute()
656 float *z, int *ldz, float *sigma,
671 double *z, int *ldz, double *sigma,
691 Scalar *z, int *ldz, RealScalar *sigma, in seupd()
712 float *z, int *ldz, float *sigma,
[all …]
/external/skia/gm/
Dimagefilters.cpp88 for (SkScalar sigma = 8; sigma <= 128; sigma *= 2) { variable
90 SkAutoTUnref<SkImageFilter> blur(SkBlurImageFilter::Create(sigma, sigma));

123456