Home
last modified time | relevance | path

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

/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold_half.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 half sigma = 0.4f * (half)radius + 0.6f;
54 half coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 half coeff2 = - 1.0f / (2.0f * sigma * sigma);
Dthreshold.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 float sigma = 0.4f * (float)radius + 0.6f;
54 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 float coeff2 = - 1.0f / (2.0f * sigma * sigma);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dthreshold.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 float sigma = 0.4f * (float)radius + 0.6f;
54 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 float coeff2 = - 1.0f / (2.0f * sigma * sigma);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dthreshold.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 float sigma = 0.4f * (float)radius + 0.6f;
54 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 float coeff2 = - 1.0f / (2.0f * sigma * sigma);
/frameworks/base/libs/hwui/utils/
DBlur.cpp33 float Blur::convertSigmaToRadius(float sigma) { in convertSigmaToRadius() argument
34 return sigma > 0.5f ? (sigma - 0.5f) / BLUR_SIGMA_SCALE : 0.0f; in convertSigmaToRadius()
71 float sigma = legacyConvertRadiusToSigma(radius); in generateGaussianWeights() local
77 float coeff1 = 1.0f / (sqrt(2.0f * pi) * sigma); in generateGaussianWeights()
78 float coeff2 = -1.0f / (2.0f * sigma * sigma); in generateGaussianWeights()
DBlur.h31 ANDROID_API static float convertSigmaToRadius(float sigma);
/frameworks/base/core/jni/android/graphics/
DMaskFilter.cpp25 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius); in createBlur() local
26 SkMaskFilter* filter = SkMaskFilter::MakeBlur((SkBlurStyle)blurStyle, sigma).release(); in createBlur()
40 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius); in createEmboss() local
41 SkMaskFilter* filter = SkBlurMaskFilter::MakeEmboss(sigma, in createEmboss()
DPaint.cpp1007 SkScalar sigma = android::uirenderer::Blur::convertRadiusToSigma(radius); in setShadowLayer() local
1008 paint->setLooper(SkBlurDrawLooper::Make(color, cs.get(), sigma, dx, dy)); in setShadowLayer()
/frameworks/ml/nn/common/operations/
DInstanceNormalization.cpp58 T mean = 0, sigma = 0; in instanceNormNhwc() local
73 sigma += val * val; in instanceNormNhwc()
76 sigma = std::sqrt(static_cast<float>(sigma / static_cast<T>(height * width)) + epsilon); in instanceNormNhwc()
82 outputData[ind] = (inputData[ind] - mean) * gamma / sigma + beta; in instanceNormNhwc()
DGenerateProposals.cpp489 int32_t softNmsKernel, float iouThreshold, float sigma, in boxWithNmsLimitFloat32Compute() argument
499 kernel = [&sigma](float iou) { return std::exp(-1.0f * iou * iou / sigma); }; in boxWithNmsLimitFloat32Compute()
621 float sigma, float nmsScoreThreshold, float* scoresOutData, in boxWithNmsLimitFloat32() argument
633 scoreThreshold, maxNumDetections, softNmsKernel, iouThreshold, sigma, nmsScoreThreshold, in boxWithNmsLimitFloat32()
643 int32_t softNmsKernel, _Float16 iouThreshold, _Float16 sigma, in boxWithNmsLimitFloat16() argument
656 batchesShape, scoreThreshold, maxNumDetections, softNmsKernel, iouThreshold, sigma, in boxWithNmsLimitFloat16()
666 float iouThreshold, float sigma, float nmsScoreThreshold, in boxWithNmsLimitQuant() argument
678 batchesShape, scoreThreshold, maxNumDetections, softNmsKernel, iouThreshold, sigma, in boxWithNmsLimitQuant()
688 float iouThreshold, float sigma, float nmsScoreThreshold, in boxWithNmsLimitQuant() argument
701 batchesShape, scoreThreshold, maxNumDetections, softNmsKernel, iouThreshold, sigma, in boxWithNmsLimitQuant()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoreCardBasedScorer.java116 double sigma = Math.sqrt(variance); in estimatedCutoff() local
117 double value = mean - 2.0 * sigma; in estimatedCutoff()
/frameworks/native/services/sensorservice/
DFusion.h95 void update(const vec3_t& z, const vec3_t& Bi, float sigma);
DFusion.cpp495 void Fusion::update(const vec3_t& z, const vec3_t& Bi, float sigma) { in update() argument
508 const mat33_t R(sigma*sigma); in update()
/frameworks/base/location/java/android/location/
DLocation.java378 double sigma = 0.0; in computeDistanceAndBearing() local
397 sigma = Math.atan2(sinSigma, cosSigma); // (16) in computeDistanceAndBearing()
424 (sigma + C * sinSigma * in computeDistanceAndBearing()
434 float distance = (float) (b * A * (sigma - deltaSigma)); in computeDistanceAndBearing()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp75 float sigma = 0.4f * mRadius + 0.6f; in ComputeGaussianWeights() local
79 float coeff1 = 1.0f / (sqrtf(2.0f * pi) * sigma); in ComputeGaussianWeights()
80 float coeff2 = - 1.0f / (2.0f * sigma * sigma); in ComputeGaussianWeights()
/frameworks/base/startop/scripts/app_startup/
Danalyze_metrics.py185 sigma = col_2d.std()
187 ci = sc.norm.interval(percent, loc=mean, scale=sigma / np.sqrt(len(col_2d)))
/frameworks/ml/nn/tools/api/
Dtypes.spec1433 * i_t =& \sigma(W_{xi}x_t+W_{hi}h_{t-1}+W_{ci}C_{t-1}+b_i) & \\
1434 * f_t =& \sigma(W_{xf}x_t+W_{hf}h_{t-1}+W_{cf}C_{t-1}+b_f) & \\
1437 * o_t =& \sigma(W_{xo}x_t+W_{ho}h_{t-1}+W_{co}C_t+b_o) & \\
1451 * * \f$\sigma\f$ is the logistic sigmoid function,
3592 * * Gaussian: score_new = score_old * exp(- IoU^2 / sigma)
3637 * * 7: An {@link %{OperandTypeLinkPfx}FLOAT32} scalar, specifying the sigma in