Home
last modified time | relevance | path

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

123

/external/skia/tests/
DBlurTest.cpp105 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)); in test_blur_drawing() local
113 filter = SkBlurMaskFilter::Create(blurStyle, sigma, flags); in test_blur_drawing()
160 SkScalar sigma, in ground_truth_2d() argument
172 SkBlurMask::BlurGroundTruth(sigma, &dst, src, SkBlurMask::kNormal_Style); in ground_truth_2d()
200 static float gaussian(int x, SkScalar sigma) { in gaussian() argument
201 float k = SK_Scalar1/(sigma * sqrtf(2.0f*SK_ScalarPI)); in gaussian()
202 float exponent = -(x * x) / (2 * sigma * sigma); in gaussian()
352 SkScalar sigma = 10.0f; in test_sigma_range() local
354 for (int i = 0; i < 4; ++i, sigma /= 10) { in test_sigma_range()
356 cpu_blur_path(rectPath, sigma, rectSpecialCaseResult, kSize); in test_sigma_range()
[all …]
/external/skia/src/effects/
DSkGpuBlurUtils.cpp31 static float adjust_sigma(float sigma, int *scaleFactor, int *radius) { in adjust_sigma() argument
33 while (sigma > MAX_BLUR_SIGMA) { in adjust_sigma()
35 sigma *= 0.5f; in adjust_sigma()
37 *radius = static_cast<int>(ceilf(sigma * 3.0f)); in adjust_sigma()
39 return sigma; in adjust_sigma()
48 float sigma, in convolve_gaussian_pass() argument
54 texture, direction, radius, sigma, useBounds, bounds)); in convolve_gaussian_pass()
66 float sigma, in convolve_gaussian() argument
71 direction, radius, sigma, false, bounds); in convolve_gaussian()
103 direction, radius, sigma, true, bounds); in convolve_gaussian()
[all …]
DSkBlurDrawLooper.cpp24 SkBlurDrawLooper::SkBlurDrawLooper(SkColor color, SkScalar sigma, in SkBlurDrawLooper() argument
26 this->init(sigma, dx, dy, color, flags); in SkBlurDrawLooper()
29 void SkBlurDrawLooper::init(SkScalar sigma, SkScalar dx, SkScalar dy, in init() argument
38 if (sigma > 0) { in init()
48 sigma, in init()
DSkBlurMask.cpp487 SkScalar sigma, Style style, Quality quality, in BoxBlur() argument
495 if (sigma <= SkIntToScalar(2)) { in BoxBlur()
503 passRadius = sigma - (1/6.0f); in BoxBlur()
508 passRadius = 1.5f*sigma - 0.5f; in BoxBlur()
685 static void compute_profile(SkScalar sigma, unsigned int **profile_out) { in compute_profile() argument
686 int size = SkScalarCeilToInt(6*sigma); in compute_profile()
691 float invr = 1.f/(2*sigma); in compute_profile()
728 bool SkBlurMask::BlurRect(SkScalar sigma, SkMask *dst, in BlurRect() argument
731 int profile_size = SkScalarCeilToInt(6*sigma); in BlurRect()
762 compute_profile(sigma, &profile); in BlurRect()
[all …]
DSkBlurMask.h32 static bool BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src,
38 SkScalar sigma, Style style, Quality quality,
43 static bool BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src,
DSkBlurMaskFilter.cpp28 SkBlurMaskFilterImpl(SkScalar sigma, SkBlurMaskFilter::BlurStyle, uint32_t flags);
97 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius); in Create() local
99 return SkNEW_ARGS(SkBlurMaskFilterImpl, (sigma, style, flags)); in Create()
103 SkScalar sigma, in Create() argument
106 if (!(sigma > 0) || (unsigned)style >= SkBlurMaskFilter::kBlurStyleCount in Create()
111 return SkNEW_ARGS(SkBlurMaskFilterImpl, (sigma, style, flags)); in Create()
116 SkBlurMaskFilterImpl::SkBlurMaskFilterImpl(SkScalar sigma, in SkBlurMaskFilterImpl() argument
119 : fSigma(sigma), fBlurStyle(style), fBlurFlags(flags) { in SkBlurMaskFilterImpl()
142 SkScalar sigma = this->computeXformedSigma(matrix); in filterMask() local
148 return SkBlurMask::BoxBlur(dst, src, sigma, (SkBlurMask::Style)fBlurStyle, in filterMask()
[all …]
DSkEmbossMaskFilter.cpp83 SkScalar sigma = matrix.mapRadius(fBlurSigma); in filterMask() local
85 if (!SkBlurMask::BoxBlur(dst, src, sigma, SkBlurMask::kInner_Style, in filterMask()
92 margin->set(SkScalarCeil(3*sigma), SkScalarCeil(3*sigma)); in filterMask()
/external/chromium_org/third_party/skia/src/effects/
DSkGpuBlurUtils.cpp31 static float adjust_sigma(float sigma, int *scaleFactor, int *radius) { in adjust_sigma() argument
33 while (sigma > MAX_BLUR_SIGMA) { in adjust_sigma()
35 sigma *= 0.5f; in adjust_sigma()
37 *radius = static_cast<int>(ceilf(sigma * 3.0f)); in adjust_sigma()
39 return sigma; in adjust_sigma()
48 float sigma, in convolve_gaussian_pass() argument
54 texture, direction, radius, sigma, useBounds, bounds)); in convolve_gaussian_pass()
66 float sigma, in convolve_gaussian() argument
71 direction, radius, sigma, false, bounds); in convolve_gaussian()
103 direction, radius, sigma, true, bounds); in convolve_gaussian()
[all …]
DSkBlurDrawLooper.cpp24 SkBlurDrawLooper::SkBlurDrawLooper(SkColor color, SkScalar sigma, in SkBlurDrawLooper() argument
26 this->init(sigma, dx, dy, color, flags); in SkBlurDrawLooper()
29 void SkBlurDrawLooper::init(SkScalar sigma, SkScalar dx, SkScalar dy, in init() argument
38 if (sigma > 0) { in init()
48 sigma, in init()
DSkBlurMask.cpp487 SkScalar sigma, Style style, Quality quality, in BoxBlur() argument
495 if (sigma <= SkIntToScalar(2)) { in BoxBlur()
503 passRadius = sigma - (1/6.0f); in BoxBlur()
508 passRadius = 1.5f*sigma - 0.5f; in BoxBlur()
685 static void compute_profile(SkScalar sigma, unsigned int **profile_out) { in compute_profile() argument
686 int size = SkScalarCeilToInt(6*sigma); in compute_profile()
691 float invr = 1.f/(2*sigma); in compute_profile()
728 bool SkBlurMask::BlurRect(SkScalar sigma, SkMask *dst, in BlurRect() argument
731 int profile_size = SkScalarCeilToInt(6*sigma); in BlurRect()
762 compute_profile(sigma, &profile); in BlurRect()
[all …]
DSkBlurMask.h32 static bool BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src,
38 SkScalar sigma, Style style, Quality quality,
43 static bool BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src,
DSkBlurMaskFilter.cpp28 SkBlurMaskFilterImpl(SkScalar sigma, SkBlurMaskFilter::BlurStyle, uint32_t flags);
97 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius); in Create() local
99 return SkNEW_ARGS(SkBlurMaskFilterImpl, (sigma, style, flags)); in Create()
103 SkScalar sigma, in Create() argument
106 if (!(sigma > 0) || (unsigned)style >= SkBlurMaskFilter::kBlurStyleCount in Create()
111 return SkNEW_ARGS(SkBlurMaskFilterImpl, (sigma, style, flags)); in Create()
116 SkBlurMaskFilterImpl::SkBlurMaskFilterImpl(SkScalar sigma, in SkBlurMaskFilterImpl() argument
119 : fSigma(sigma), fBlurStyle(style), fBlurFlags(flags) { in SkBlurMaskFilterImpl()
142 SkScalar sigma = this->computeXformedSigma(matrix); in filterMask() local
148 return SkBlurMask::BoxBlur(dst, src, sigma, (SkBlurMask::Style)fBlurStyle, in filterMask()
[all …]
DSkEmbossMaskFilter.cpp83 SkScalar sigma = matrix.mapRadius(fBlurSigma); in filterMask() local
85 if (!SkBlurMask::BoxBlur(dst, src, sigma, SkBlurMask::kInner_Style, in filterMask()
92 margin->set(SkScalarCeil(3*sigma), SkScalarCeil(3*sigma)); in filterMask()
/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()
Dstats.c24 double mu=0.0, sigma=0.0, sumsquare=0.0, sum=0.0, top=0.0, rho=0.0; in stats() local
44 sigma = sqrt((sumsquare - (double)n*mu*mu)/(double)(n-1)); in stats()
54 printf("sigma = %12.6f\n", sigma); in stats()
Dnormal.c18 normal(double x, double mu, double sigma) in normal() argument
20 return .5 + .5*erf((x-mu)/(sqrt(2.0)*sigma)); in normal()
/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/chromium_org/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/eigen/Eigen/src/Cholesky/
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); \
DLLT.h174 LLT rankUpdate(const VectorType& vec, const RealScalar& sigma = 1);
191 …_update_lower(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma) in llt_rank_update_lower() argument
207 if(sigma>0) in llt_rank_update_lower()
212 temp = sqrt(sigma) * vec; in llt_rank_update_lower()
237 RealScalar swj2 = sigma*abs2(wj); in llt_rank_update_lower()
253 …mat.col(j).tail(rs) = (nLjj/Ljj) * mat.col(j).tail(rs) + (nLjj * sigma*conj(wj)/gamma)*temp.tail(r… in llt_rank_update_lower()
323 …ename MatrixType::Index rankUpdate(MatrixType& mat, const VectorType& vec, const RealScalar& sigma)
325 return Eigen::internal::llt_rank_update_lower(mat, vec, sigma);
346 …ename MatrixType::Index rankUpdate(MatrixType& mat, const VectorType& vec, const RealScalar& sigma)
349 return llt_inplace<Scalar, Lower>::rankUpdate(matt, vec.conjugate(), sigma);
[all …]
DLDLT.h342 …ol updateInPlace(MatrixType& mat, MatrixBase<WDerived>& w, typename MatrixType::RealScalar sigma=1)
364 RealScalar swj2 = sigma*abs2(wj);
375 mat.col(j).tail(rs) += (sigma*conj(wj)/gamma)*w.tail(rs);
381 …itionType& transpositions, Workspace& tmp, const WType& w, typename MatrixType::RealScalar sigma=1)
386 return ldlt_inplace<Lower>::updateInPlace(mat,tmp,sigma);
400 …anspositionType& transpositions, Workspace& tmp, WType& w, typename MatrixType::RealScalar sigma=1)
403 return ldlt_inplace<Lower>::update(matt, transpositions, tmp, w.conjugate(), sigma);
452 …ankUpdate(const MatrixBase<Derived>& w,typename NumTraits<typename MatrixType::Scalar>::Real sigma)
467 m_sign = sigma>=0 ? 1 : -1;
471 internal::ldlt_inplace<UpLo>::update(m_matrix, m_transpositions, m_temporary, w, sigma);
/external/chromium_org/third_party/openssl/openssl/crypto/chacha/
Dchacha_enc.c68 static const char sigma[16] = "expand 32-byte k"; variable
147 input[0] = U8TO32_LITTLE(sigma + 0); in CRYPTO_chacha_20()
148 input[1] = U8TO32_LITTLE(sigma + 4); in CRYPTO_chacha_20()
149 input[2] = U8TO32_LITTLE(sigma + 8); in CRYPTO_chacha_20()
150 input[3] = U8TO32_LITTLE(sigma + 12); in CRYPTO_chacha_20()
/external/chromium_org/skia/ext/
Drecursive_gaussian_convolution.cc195 float RecursiveFilter::qFromSigma(float sigma) { in qFromSigma() argument
196 DCHECK_GE(sigma, 0.5f); in qFromSigma()
197 if (sigma <= 2.5f) in qFromSigma()
198 return 3.97156f - 4.14554f * std::sqrt(1.0f - 0.26891f * sigma); in qFromSigma()
199 return 0.98711f * sigma - 0.96330f; in qFromSigma()
217 RecursiveFilter::RecursiveFilter(float sigma, Order order) in RecursiveFilter() argument
218 : order_(order), q_(qFromSigma(sigma)) { in RecursiveFilter()
Drecursive_gaussian_convolution.h27 static float qFromSigma(float sigma);
29 SK_API RecursiveFilter(float sigma, Order order);
/external/skia/gm/
Dspritebitmap.cpp81 SkScalar sigma = 8; in onDraw() local
82 SkAutoTUnref<SkImageFilter> filter(new SkBlurImageFilter(sigma, sigma)); in onDraw()

123