Home
last modified time | relevance | path

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

12345

/external/exoplayer/tree/library/ui/src/test/java/com/google/android/exoplayer2/ui/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 …]
/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/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()
Dutils.h37 #define EPSILON 0.00001f macro
154 return NearlyEqual(a, b, EPSILON); in NearlyEqual()
366 if (fabs(det) < EPSILON) { in Invert2x2()
/external/cldr/tools/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/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 …]
DRecordUtilsTest.java50 private static final double EPSILON = 1e-7; field in RecordUtilsTest
113 assertThat(mutableDistribution.getSumOfSquaredDeviations()).isWithin(EPSILON).of(0); in createMutableAggregation()
/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/perfetto/ui/src/common/
Dtime.ts17 const EPSILON = 0.0000000001; constant
95 return Math.abs(this.start - other.start) < EPSILON &&
96 Math.abs(this.end - other.end) < EPSILON;
/external/rust/crates/half/src/
Dvec.rs264 let numbers = vec![f16::E, f16::PI, f16::EPSILON, f16::FRAC_1_SQRT_2]; in test_vec_conversions_f16()
268 f16::EPSILON.to_bits(), in test_vec_conversions_f16()
284 let numbers = vec![bf16::E, bf16::PI, bf16::EPSILON, bf16::FRAC_1_SQRT_2]; in test_vec_conversions_bf16()
288 bf16::EPSILON.to_bits(), in test_vec_conversions_bf16()
/external/flatbuffers/tests/rust_usage_test/bin/
Dalloc_check.rs120 assert!((pos.x() - 1.0f32).abs() < std::f32::EPSILON); in main()
121 assert!((pos.y() - 2.0f32).abs() < std::f32::EPSILON); in main()
122 assert!((pos.z() - 3.0f32).abs() < std::f32::EPSILON); in main()
123 assert!((pos.test1() - 3.0f64).abs() < std::f64::EPSILON); in main()
/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/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/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DTextClassifierSettingsTest.java39 private static final float EPSILON = 0.0001f; field in TextClassifierSettingsTest
74 settings -> assertThat(settings.getLangIdThresholdOverride()).isWithin(EPSILON).of(3.14f)); in floatSetting()
93 .usingTolerance(EPSILON) in floatListSetting()
/external/llvm-project/clang/test/SemaCXX/
Dwarn-xor-as-pow.cpp15 #define EPSILON 10 ^ -300 macro
86 res = EPSILON; in test()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/
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/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/core/
DZerosTest.java35 private static final float EPSILON = 1e-7f; field in ZerosTest
66 assertEquals(0.0f, actual[i][j], EPSILON); in createFloatZeros()
84 assertEquals(0.0, actual[i][j], EPSILON); in createDoubleZeros()
DConstantTest.java40 private static final float EPSILON = 1e-7f; field in ConstantTest
97 assertArrayEquals(floats, result.expect(Float.class).copyTo(actual), EPSILON); in createFloatBuffer()
127 assertArrayEquals(doubles, result.expect(Double.class).copyTo(actual), EPSILON); in createDoubleBuffer()
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/benchmarks/
Ddiscretization_adapt_benchmark.py34 EPSILON = 0.1 variable
39 def reduce_fn(state, values, epsilon=EPSILON):
/external/antlr/tool/src/main/java/org/antlr/analysis/
DRuleClosureTransition.java49 super(Label.EPSILON, ruleStart); in RuleClosureTransition()

12345