Home
last modified time | relevance | path

Searched refs:EPSILON (Results 1 – 25 of 178) sorted by relevance

12345678

/external/cronet/base/android/junit/src/org/chromium/base/
DMathUtilsTest.java7 import static org.chromium.base.MathUtils.EPSILON;
27 Assert.assertEquals(ROUND_FAILURE, 2.12, MathUtils.roundTwoDecimalPlaces(2.123), EPSILON); in testRoundTwoDecimalPlaces()
28 Assert.assertEquals(ROUND_FAILURE, 2.13, MathUtils.roundTwoDecimalPlaces(2.127), EPSILON); in testRoundTwoDecimalPlaces()
29 Assert.assertEquals(ROUND_FAILURE, -2.12, MathUtils.roundTwoDecimalPlaces(-2.123), EPSILON); in testRoundTwoDecimalPlaces()
30 Assert.assertEquals(ROUND_FAILURE, -2.13, MathUtils.roundTwoDecimalPlaces(-2.127), EPSILON); in testRoundTwoDecimalPlaces()
51 Assert.assertEquals(CLAMP_FAILURE, 4, MathUtils.clamp(4, min, max), EPSILON); in testClampLong()
52 Assert.assertEquals(CLAMP_FAILURE, 4, MathUtils.clamp(4, max, min), EPSILON); in testClampLong()
54 Assert.assertEquals(CLAMP_FAILURE, 1, MathUtils.clamp(-1, min, max), EPSILON); in testClampLong()
55 Assert.assertEquals(CLAMP_FAILURE, 1, MathUtils.clamp(0, max, min), EPSILON); in testClampLong()
57 Assert.assertEquals(CLAMP_FAILURE, 9, MathUtils.clamp(10, min, max), EPSILON); in testClampLong()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/
DTouchTrackerTest.java31 private static final float EPSILON = 0.00001f; field in TouchTrackerTest
65 assertThat(yaw).isWithin(EPSILON).of(0); in tap()
66 assertThat(pitch).isWithin(EPSILON).of(0); in tap()
72 assertThat(yaw).isWithin(EPSILON).of(-SWIPE_PX / PX_PER_DEGREES); in basicYaw()
73 assertThat(pitch).isWithin(EPSILON).of(0); in basicYaw()
80 assertThat(pitch).isWithin(EPSILON).of(0); in bigYaw()
86 assertThat(yaw).isWithin(EPSILON).of(0); in yawUnaffectedByPitch()
89 assertThat(yaw).isWithin(EPSILON).of(-SWIPE_PX / PX_PER_DEGREES); in yawUnaffectedByPitch()
95 assertThat(yaw).isWithin(EPSILON).of(0); in basicPitch()
96 assertThat(pitch).isWithin(EPSILON).of(SWIPE_PX / PX_PER_DEGREES); in basicPitch()
[all …]
DProjectionTest.java30 private static final float EPSILON = .00001f; field in ProjectionTest
59 assertEquals(RADIUS, Math.sqrt(x * x + y * y + z * z), EPSILON); in sphericalMesh()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/
DTouchTrackerTest.java31 private static final float EPSILON = 0.00001f; field in TouchTrackerTest
65 assertThat(yaw).isWithin(EPSILON).of(0); in tap()
66 assertThat(pitch).isWithin(EPSILON).of(0); in tap()
72 assertThat(yaw).isWithin(EPSILON).of(-SWIPE_PX / PX_PER_DEGREES); in basicYaw()
73 assertThat(pitch).isWithin(EPSILON).of(0); in basicYaw()
80 assertThat(pitch).isWithin(EPSILON).of(0); in bigYaw()
86 assertThat(yaw).isWithin(EPSILON).of(0); in yawUnaffectedByPitch()
89 assertThat(yaw).isWithin(EPSILON).of(-SWIPE_PX / PX_PER_DEGREES); in yawUnaffectedByPitch()
95 assertThat(yaw).isWithin(EPSILON).of(0); in basicPitch()
96 assertThat(pitch).isWithin(EPSILON).of(SWIPE_PX / PX_PER_DEGREES); in basicPitch()
[all …]
DProjectionTest.java30 private static final float EPSILON = .00001f; field in ProjectionTest
59 assertEquals(RADIUS, Math.sqrt(x * x + y * y + z * z), EPSILON); in sphericalMesh()
/external/rust/crates/rand/src/distributions/
Dfloat.rs142 use core::$f_scalar::EPSILON;
147 fraction.into_float_with_exponent(0) - (1.0 - EPSILON / 2.0)
178 const EPSILON32: f32 = ::core::f32::EPSILON;
179 const EPSILON64: f64 = ::core::f64::EPSILON;
182 ($fnn:ident, $ty:ident, $ZERO:expr, $EPSILON:expr) => {
189 assert_eq!(one.gen::<$ty>(), $EPSILON / 2.0);
191 assert_eq!(max.gen::<$ty>(), 1.0 - $EPSILON / 2.0);
195 assert_eq!(zeros.sample::<$ty, _>(OpenClosed01), 0.0 + $EPSILON / 2.0);
197 assert_eq!(one.sample::<$ty, _>(OpenClosed01), $EPSILON);
203 assert_eq!(zeros.sample::<$ty, _>(Open01), 0.0 + $EPSILON / 2.0);
[all …]
/external/rust/crates/der/src/asn1/
Dreal.rs265 assert!(neg_zero.is_sign_negative() && neg_zero.abs() < f64::EPSILON); in decode_subnormal()
306 (decoded - val).abs() < f64::EPSILON, in encdec_normal()
326 (decoded - val).abs() < f64::EPSILON, in encdec_normal()
346 (decoded - val).abs() < f64::EPSILON, in encdec_normal()
366 (decoded - val).abs() < f64::EPSILON, in encdec_normal()
387 (decoded - val).abs() < f64::EPSILON, in encdec_normal()
407 (decoded - val).abs() < f64::EPSILON, in encdec_normal()
429 (decoded - val).abs() < f64::EPSILON, in encdec_normal()
453 (decoded - val).abs() < f64::EPSILON, in encdec_irrationals()
474 (decoded - val).abs() < f64::EPSILON, in encdec_irrationals()
[all …]
/external/antlr/tool/src/main/java/org/antlr/tool/
DNFAFactory.java249 transitionBetweenStates(left, right, Label.EPSILON); in build_Epsilon()
342 transitionBetweenStates(A.right, B.left, Label.EPSILON); in build_AB()
358 transitionBetweenStates(startOfAlt, set.left, Label.EPSILON); in build_AlternativeBlockFromSet()
398 transitionBetweenStates(startOfAlt, g.left, Label.EPSILON); in build_AlternativeBlock()
417 transitionBetweenStates(left, g.left, Label.EPSILON); in build_AlternativeBlock()
418 transitionBetweenStates(g.right, blockEndNFAState, Label.EPSILON); in build_AlternativeBlock()
425 transitionBetweenStates(prevAlternative, left, Label.EPSILON); in build_AlternativeBlock()
463 transitionBetweenStates(A.right, blockEndNFAState, Label.EPSILON); in build_Aoptional()
466 transitionBetweenStates(decisionState, emptyAlt, Label.EPSILON); in build_Aoptional()
467 transitionBetweenStates(emptyAlt, blockEndNFAState, Label.EPSILON); in build_Aoptional()
[all …]
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dframe_pair.cc174 if (((dist2_x > EPSILON && dist1_x > EPSILON) || in FillScales()
175 (dist2_x < -EPSILON && dist1_x < -EPSILON)) && in FillScales()
176 ((dist2_y > EPSILON && dist1_y > EPSILON) || in FillScales()
177 (dist2_y < -EPSILON && dist1_y < -EPSILON))) { in FillScales()
205 if (num_items == 0 || sum < EPSILON) { in GetMedian()
Dutils_neon.cc63 SCHECK(NearlyEqual(mean_neon, mean_cpu, EPSILON * num_vals), in ComputeMeanNeon()
101 SCHECK(NearlyEqual(std_dev_neon, std_dev_cpu, EPSILON * num_vals), in ComputeStdDevNeon()
141 EPSILON * num_vals), in ComputeCrossCorrelationNeon()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DZoneInflections.java43 static private final long EPSILON = 15 * MINUTE; // smallest interval we test field in ZoneInflections
121 while (high - low > EPSILON) { in ZoneInflections()
123 mid = (mid / EPSILON) * EPSILON; // round to nearest possible point in ZoneInflections()
125 mid += EPSILON; in ZoneInflections()
163 - EPSILON; in compareTo()
167 mostRecentDateTime.value = ip1.utcDateTime - EPSILON; in compareTo()
171 mostRecentDateTime.value = ip2.utcDateTime - EPSILON; in compareTo()
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DShadowNativeMatrixTest.java20 private static final float EPSILON = 1e-7f; field in ShadowNativeMatrixTest
425 assertThat(actual.x).isWithin(EPSILON).of(expected.x); in assertPointsEqual()
426 assertThat(actual.y).isWithin(EPSILON).of(expected.y); in assertPointsEqual()
435 assertThat(vals[0]).isWithin(EPSILON).of(1); in checkInverse()
436 assertThat(vals[1]).isWithin(EPSILON).of(0); in checkInverse()
437 assertThat(vals[2]).isWithin(EPSILON).of(0); in checkInverse()
438 assertThat(vals[3]).isWithin(EPSILON).of(0); in checkInverse()
439 assertThat(vals[4]).isWithin(EPSILON).of(1); in checkInverse()
440 assertThat(vals[5]).isWithin(EPSILON).of(0); in checkInverse()
441 assertThat(vals[6]).isWithin(EPSILON).of(0); in checkInverse()
[all …]
/external/cronet/third_party/icu/source/data/translit/
Del_el_Latn_BGN.txt104 [ἘἙ] → Ε ; # GREEK CAPITAL LETTER EPSILON
105 [ἐἑὲέ] → ε ; # GREEK SMALL LETTER EPSILON
106 [ἚἛἜἝῈΈ] → Έ ; # GREEK CAPITAL LETTER EPSILON WITH TONOS
107 [ἒἓἔἕ] → έ ; # GREEK SMALL LETTER EPSILON WITH TONOS
329 ΕΙ → I ; # GREEK CAPITAL LETTER EPSILON + CAPITAL IOTA
330 Ει → I ; # GREEK CAPITAL LETTER EPSILON + SMALL IOTA
331 ει → i ; # GREEK SMALL LETTER EPSILON + SMALL IOTA
332 ΕΪ → EÏ ; # GREEK CAPITAL LETTER EPSILON + CAPITAL IOTA DIAERESIS
333 Εϊ → Eï ; # GREEK CAPITAL LETTER EPSILON + SMALL IOTA DIAERESIS
334 εϊ → eï ; # GREEK SMALL LETTER EPSILON + SMALL IOTA DIAERESIS
[all …]
/external/icu/icu4c/source/data/translit/
Del_el_Latn_BGN.txt104 [ἘἙ] → Ε ; # GREEK CAPITAL LETTER EPSILON
105 [ἐἑὲέ] → ε ; # GREEK SMALL LETTER EPSILON
106 [ἚἛἜἝῈΈ] → Έ ; # GREEK CAPITAL LETTER EPSILON WITH TONOS
107 [ἒἓἔἕ] → έ ; # GREEK SMALL LETTER EPSILON WITH TONOS
329 ΕΙ → I ; # GREEK CAPITAL LETTER EPSILON + CAPITAL IOTA
330 Ει → I ; # GREEK CAPITAL LETTER EPSILON + SMALL IOTA
331 ει → i ; # GREEK SMALL LETTER EPSILON + SMALL IOTA
332 ΕΪ → EÏ ; # GREEK CAPITAL LETTER EPSILON + CAPITAL IOTA DIAERESIS
333 Εϊ → Eï ; # GREEK CAPITAL LETTER EPSILON + SMALL IOTA DIAERESIS
334 εϊ → eï ; # GREEK SMALL LETTER EPSILON + SMALL IOTA DIAERESIS
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DViewManagerImplTest.java102 private static final double EPSILON = 1e-7; field in ViewManagerImplTest
319 EPSILON); in testRecordCumulative() local
443 EPSILON); in testRecordInterval() local
450 EPSILON); in testRecordInterval() local
462 EPSILON); in testRecordInterval() local
470 EPSILON); in testRecordInterval() local
493 EPSILON); in getViewDoesNotClearStats() local
508 EPSILON); in getViewDoesNotClearStats() local
535 EPSILON); in testRecordCumulativeMultipleTagValues() local
580 EPSILON); in testRecordIntervalMultipleTagValues() local
[all …]
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DTensorTest.java41 private static final double EPSILON = 1e-7; field in TensorTest
82 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createWithByteBuffer()
109 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createFromBufferWithNonNativeByteOrder()
125 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createWithTypedBuffer()
189 assertEquals(floats[0], bbuf.asFloatBuffer().get(0), EPSILON); in writeTo()
194 assertEquals(doubles[0], bbuf.asDoubleBuffer().get(0), EPSILON); in writeTo()
221 assertEquals(doubles[0], buf.get(0), EPSILON); in writeTo()
229 assertEquals(floats[0], buf.get(0), EPSILON); in writeTo()
235 assertEquals(doubles[0], buf.get(0), EPSILON); in writeTo()
263 assertArrayEquals(doubles, actual, EPSILON); in writeTo()
[all …]
/external/rust/crates/half/src/
Dvec.rs237 let numbers = vec![f16::E, f16::PI, f16::EPSILON, f16::FRAC_1_SQRT_2]; in test_vec_conversions_f16()
241 f16::EPSILON.to_bits(), in test_vec_conversions_f16()
257 let numbers = vec![bf16::E, bf16::PI, bf16::EPSILON, bf16::FRAC_1_SQRT_2]; in test_vec_conversions_bf16()
261 bf16::EPSILON.to_bits(), in test_vec_conversions_bf16()
/external/flatbuffers/tests/rust_usage_test/bin/
Dflatbuffers_alloc_check.rs144 assert!((pos.x() - 1.0f32).abs() < std::f32::EPSILON); in main()
145 assert!((pos.y() - 2.0f32).abs() < std::f32::EPSILON); in main()
146 assert!((pos.z() - 3.0f32).abs() < std::f32::EPSILON); in main()
147 assert!((pos.test1() - 3.0f64).abs() < std::f64::EPSILON); in main()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DTextClassifierSettingsTest.java38 private static final float EPSILON = 0.0001f; field in TextClassifierSettingsTest
73 settings -> assertThat(settings.getLangIdThresholdOverride()).isWithin(EPSILON).of(3.14f)); in floatSetting()
92 .usingTolerance(EPSILON) in floatListSetting()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DRateLimiterTest.java47 private static final double EPSILON = 1e-8; field in RateLimiterTest
136 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.00 in testSimpleAcquireReturnValues()
138 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.00, ...which is granted immediately in testSimpleAcquireReturnValues()
139 assertEquals(0.2, limiter.acquire(), EPSILON); // R0.20 in testSimpleAcquireReturnValues()
145 assertEquals(0.0, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
147 assertEquals(0.0, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
148 assertEquals(0.0, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
149 assertEquals(0.2, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DRateLimiterTest.java47 private static final double EPSILON = 1e-8; field in RateLimiterTest
136 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.00 in testSimpleAcquireReturnValues()
138 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.00, ...which is granted immediately in testSimpleAcquireReturnValues()
139 assertEquals(0.2, limiter.acquire(), EPSILON); // R0.20 in testSimpleAcquireReturnValues()
145 assertEquals(0.0, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
147 assertEquals(0.0, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
148 assertEquals(0.0, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
149 assertEquals(0.2, limiter.acquire(), EPSILON); in testSimpleAcquireEarliestAvailableIsInPast()
/external/deqp/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderLayeredFramebuffer.cpp333 #define EPSILON (1) in iterate() macro
338 if (de::abs((int)data[0] - (int)ref_data[0]) > EPSILON || in iterate()
339 de::abs((int)data[1] - (int)ref_data[1]) > EPSILON || in iterate()
340 de::abs((int)data[2] - (int)ref_data[2]) > EPSILON || in iterate()
341 de::abs((int)data[3] - (int)ref_data[3]) > EPSILON) in iterate()
345 << "Reference value is different than the rendered data (epsilon > " << EPSILON in iterate()
356 #undef EPSILON in iterate()
742 #define EPSILON (1) in iterate() macro
746 if (de::abs((int)pixel[0] - clear_color_int[0]) > EPSILON || in iterate()
747 de::abs((int)pixel[1] - clear_color_int[1]) > EPSILON || in iterate()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DUtils.java21 private static final float EPSILON = 0.0001f; field in Utils
24 return close(a, b, EPSILON); in close()
/external/harfbuzz_ng/test/api/
Dtest-var-coords.c39 #define EPSILON 0.05f in test_get_var_coords() macro
63 g_assert_true (G_APPROX_VALUE (converted_back, weight, EPSILON)); in test_get_var_coords()
/external/cronet/base/android/java/src/org/chromium/base/
DMathUtils.java12 public static final float EPSILON = 0.001f; field in MathUtils
169 return Math.abs(f1 - f2) < MathUtils.EPSILON; in areFloatsEqual()

12345678