/external/clang/test/PCH/ |
H A D | blocks.h | 12 __block int scale = s; 13 return call_block(^(int x, int y) { return x*scale + y; }, a, b);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/ |
H A D | TimeScaleMonkeyTest.java | 92 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { 93 long fromMin = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MIN_VALUE); 94 long fromMax = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MAX_VALUE); 102 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); 105 errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
H A D | TimeScaleMonkeyTest.java | 89 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { 90 long fromMin = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MIN_VALUE); 91 long fromMax = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MAX_VALUE); 99 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); 102 errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt);
|
/external/skia/include/core/ |
H A D | SkUnPreMultiply.h | 38 SkUnPreMultiply::Scale scale = table[a]; 40 red = SkUnPreMultiply::ApplyScale(scale, red); 45 static U8CPU ApplyScale(Scale scale, U8CPU component) { argument 47 return (scale * component + (1 << 23)) >> 24;
|
/external/skqp/include/core/ |
H A D | SkUnPreMultiply.h | 38 SkUnPreMultiply::Scale scale = table[a]; 40 red = SkUnPreMultiply::ApplyScale(scale, red); 45 static U8CPU ApplyScale(Scale scale, U8CPU component) { argument 47 return (scale * component + (1 << 23)) >> 24;
|
/external/tensorflow/tensorflow/core/kernels/ |
H A D | adjust_saturation_op_gpu.cu.cc | 30 const float* const scale, 40 number_of_elements, input, output, nullptr, scale, nullptr); 27 operator ()(GPUDevice* device, const int64 number_of_elements, const float* const input, const float* const scale, float* const output) argument
|
/external/aac/libFDK/include/ |
H A D | scale.h | 235 * \brief Scale input value by 2^{scale} and saturate output to 2^{dBits-1} 243 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \ 244 ((((LONG)(src) >> (scale)) > (LONG)(((1U) << ((dBits)-1)) - 1)) \ 246 : (((LONG)(src) >> (scale)) < ~((LONG)(((1U) << ((dBits)-1)) - 1))) \ 248 : ((LONG)(src) >> (scale))) 252 #define SATURATE_LEFT_SHIFT(src, scale, dBits) \ 253 (((LONG)(src) > ((LONG)(((1U) << ((dBits)-1)) - 1) >> (scale))) \ 255 : ((LONG)(src) < ~((LONG)(((1U) << ((dBits)-1)) - 1) >> (scale))) \ 257 : ((LONG)(src) << (scale))) 261 #define SATURATE_SHIFT(src, scale, dBit [all...] |
/external/scapy/scapy/contrib/ |
H A D | ppi_cace.py | 57 scale = 1e-3 59 scale = 1e-6 60 tout = scale * float(val) 63 scale = 1e6 68 scale = 1e3 69 tout = int((scale * val) + 0.5)
|
/external/skia/src/core/ |
H A D | SkPoint3.cpp | 53 float scale; local 55 scale = 1.0f / sk_float_sqrt(magSq); 65 // Casting this to a float would cause the scale to go to zero. Keeping it 66 // as a double for the multiply keeps the scale non-zero. 73 scale = (float)(1.0f / sqrt(xx * xx + yy * yy + zz * zz)); 76 fX *= scale; 77 fY *= scale; 78 fZ *= scale;
|
/external/skqp/src/core/ |
H A D | SkPoint3.cpp | 53 float scale; local 55 scale = 1.0f / sk_float_sqrt(magSq); 65 // Casting this to a float would cause the scale to go to zero. Keeping it 66 // as a double for the multiply keeps the scale non-zero. 73 scale = (float)(1.0f / sqrt(xx * xx + yy * yy + zz * zz)); 76 fX *= scale; 77 fY *= scale; 78 fZ *= scale;
|
/external/tensorflow/tensorflow/core/lib/monitoring/ |
H A D | sampler.cc | 66 ExponentialBuckets(double scale, double growth_factor, int bucket_count) argument 68 ComputeBucketLimits(scale, growth_factor, bucket_count)) {} 75 static std::vector<double> ComputeBucketLimits(double scale, argument 80 double bound = scale; 102 std::unique_ptr<Buckets> Buckets::Exponential(double scale, argument 106 new ExponentialBuckets(scale, growth_factor, bucket_count));
|
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
H A D | half_normal_test.py | 60 scale_shape = param_shapes["scale"] 62 scale = array_ops.ones(scale_shape) 65 array_ops.shape(hn_lib.HalfNormal(scale).sample()).eval()) 69 scale_shape = param_shapes["scale"] 92 scale = constant_op.constant([3.0] * batch_size) 94 halfnorm = hn_lib.HalfNormal(scale=scale) 104 expected_log_pdf = stats.halfnorm(scale=scale.eval()).logpdf(x) 111 scale [all...] |
H A D | sinh_arcsinh_test.py | 35 scale = rng.rand(b) + 0.5 40 scale=scale, 44 scale=scale, 63 scale = array_ops.placeholder(dtypes.float64) 67 scale=scale, 73 scale: np.float64(rng.rand()), # Scalar 79 scale [all...] |
/external/tensorflow/tensorflow/contrib/distributions/python/ops/ |
H A D | half_normal.py | 42 """The Half Normal distribution with scale `scale`. 49 X ~ Normal(0.0, scale) 56 pdf(x; scale, x > 0) = sqrt(2) / (scale * sqrt(pi)) * 57 exp(- 1/2 * (x / scale) ** 2) 60 Where `scale = sigma` is the standard deviation of the underlying normal 69 dist = tf.contrib.distributions.HalfNormal(scale=3.0) 75 # The first has scale 11.0, the second 22.0 76 dist = tf.contrib.distributions.HalfNormal(scale 127 def scale(self): member in class:HalfNormal [all...] |
H A D | logistic.py | 37 """The Logistic distribution with location `loc` and `scale` parameters. 47 where `loc = mu` and `scale = sigma`. 49 The Logistic distribution is a member of the [location-scale family]( 54 X ~ Logistic(loc=0, scale=1) 55 Y = loc + scale * X 66 dist = tfd.Logistic(loc=0., scale=3.) 72 # The first has mean 1 and scale 11, the second 2 and 22. 73 dist = tfd.Logistic(loc=[1, 2.], scale=[11, 22.]) 85 dist = tfd.Logistic(loc=1., scale=[11, 22.]) 96 scale, 150 def scale(self): member in class:Logistic [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
H A D | CauchyDistributionImpl.java | 48 /** The scale of this distribution. */ 49 private double scale = 1; field in class:CauchyDistributionImpl 55 * Creates cauchy distribution with the medain equal to zero and scale 63 * Create a cauchy distribution using the given median and scale. 65 * @param s scale parameter for this distribution 72 * Create a cauchy distribution using the given median and scale. 74 * @param s scale parameter for this distribution 92 return 0.5 + (FastMath.atan((x - median) / scale) / FastMath.PI); 104 * Access the scale parameter. 105 * @return scale paramete [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/ |
H A D | LeastSquaresConverter.java | 70 private final RealMatrix scale; field in class:LeastSquaresConverter 81 this.scale = null; 123 this.scale = null; 130 * objective = y<sup>T</sup>y with y = scale×(observation-objective) 140 * @param scale scaling matrix 141 * @exception IllegalArgumentException if the observations vector and the scale 146 final double[] observations, final RealMatrix scale) 148 if (observations.length != scale.getColumnDimension()) { 151 observations.length, scale.getColumnDimension()); 156 this.scale 145 LeastSquaresConverter(final MultivariateVectorialFunction function, final double[] observations, final RealMatrix scale) argument [all...] |
/external/tensorflow/tensorflow/python/ops/distributions/ |
H A D | normal.py | 46 """The Normal distribution with location `loc` and `scale` parameters. 57 where `loc = mu` is the mean, `scale = sigma` is the std. deviation, and, `Z` 60 The Normal distribution is a member of the [location-scale family]( 65 X ~ Normal(loc=0, scale=1) 66 Y = loc + scale * X 75 dist = tf.distributions.Normal(loc=0., scale=3.) 82 dist = tf.distributions.Normal(loc=[1, 2.], scale=[11, 22.]) 97 dist = tf.distributions.Normal(loc=1., scale=[11, 22.]) 108 scale, 112 """Construct Normal distributions with mean and stddev `loc` and `scale` 162 def scale(self): member in class:Normal [all...] |
/external/pdfium/core/fxcrt/ |
H A D | fx_string.cpp | 169 int scale = 0; local 173 value += FractionalScale(scale, FXSYS_DecimalCharToInt(strc.CharAt(cc))); 174 scale++; 175 if (scale == FX_ArraySize(fraction_scales)) 198 int scale = 1; local 201 if (scale == 1000000) { 204 scale *= 10; 205 scaled = FXSYS_round(d * scale); 215 int i = scaled / scale; 220 int fraction = scaled % scale; [all...] |
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/ |
H A D | gumbel_test.py | 36 scale = 5. 37 bijector = Gumbel(loc=loc, scale=scale, event_ndims=1, validate_args=True) 41 gumbel_dist = stats.gumbel_r(loc=loc, scale=scale) 59 Gumbel(loc=0.3, scale=20.), lower_x=1., upper_x=100., rtol=0.02) 63 bijector = Gumbel(loc=0., scale=3.0, event_ndims=0, validate_args=True)
|
H A D | weibull_test.py | 35 scale = 5. 38 scale=scale, concentration=concentration, 43 weibull_dist = stats.frechet_r(c=concentration, scale=scale) 61 Weibull(scale=20., concentration=0.3), 67 scale=20., concentration=2., event_ndims=0, validate_args=True)
|
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
H A D | laplace_test.py | 51 scale = constant_op.constant(11.0) 52 laplace = laplace_lib.Laplace(loc=loc, scale=scale) 63 scale = constant_op.constant([3.0] * batch_size) 67 laplace = laplace_lib.Laplace(loc=loc, scale=scale) 72 expected_log_pdf = stats.laplace.logpdf(x, loc_v, scale=scale_v) 83 scale = constant_op.constant([[3.0, 4.0]] * batch_size) 87 laplace = laplace_lib.Laplace(loc=loc, scale=scale) [all...] |
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/ |
H A D | gumbel.py | 34 """Compute `Y = g(X) = exp(-exp(-(X - loc) / scale))`. 42 Y ~ Gumbel(loc, scale) 43 pdf(y; loc, scale) = exp( 44 -( (y - loc) / scale + exp(- (y - loc) / scale) ) ) / scale 50 scale=1., 58 broadcastable with `scale`. 59 This is `loc` in `Y = g(X) = exp(-exp(-(X - loc) / scale))`. 60 scale 91 def scale(self): member in class:Gumbel [all...] |
/external/skia/bench/ |
H A D | ColorPrivBench.cpp | 53 // depends on scale. Even here, these must be volatile arrays to prevent that 58 const unsigned scale = fScales[j]; variable 61 junk ^= SkFastFourByteInterp(src, dst, scale); 63 junk ^= SkFastFourByteInterp256(src, dst, scale); 65 junk ^= SkFourByteInterp(src, dst, scale); 67 junk ^= SkFourByteInterp256(src, dst, scale);
|
/external/skqp/bench/ |
H A D | ColorPrivBench.cpp | 53 // depends on scale. Even here, these must be volatile arrays to prevent that 58 const unsigned scale = fScales[j]; variable 61 junk ^= SkFastFourByteInterp(src, dst, scale); 63 junk ^= SkFastFourByteInterp256(src, dst, scale); 65 junk ^= SkFourByteInterp(src, dst, scale); 67 junk ^= SkFourByteInterp256(src, dst, scale);
|