/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | covariance_matrix_generator_unittest.cc | 28 const float kTolerance = 0.0001f; in TEST() local 41 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 42 EXPECT_NEAR(actual_els[0][1].real(), 0.9998f, kTolerance); in TEST() 43 EXPECT_NEAR(actual_els[1][0].real(), 0.9998f, kTolerance); in TEST() 44 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); in TEST() 46 EXPECT_NEAR(actual_els[0][0].imag(), 0.f, kTolerance); in TEST() 47 EXPECT_NEAR(actual_els[0][1].imag(), 0.f, kTolerance); in TEST() 48 EXPECT_NEAR(actual_els[1][0].imag(), 0.f, kTolerance); in TEST() 49 EXPECT_NEAR(actual_els[1][1].imag(), 0.f, kTolerance); in TEST() 56 const float kTolerance = 0.0001f; in TEST() local [all …]
|
D | matrix_test_helpers.h | 19 const float kTolerance = 0.001f; variable 53 EXPECT_NEAR(expected_elements[i][j], actual_elements[i][j], kTolerance); in ValidateMatrixEqualityFloat() 70 kTolerance); in ValidateMatrixEqualityComplexFloat() 73 kTolerance); in ValidateMatrixEqualityComplexFloat()
|
/external/tensorflow/tensorflow/core/example/ |
D | feature_util_test.cc | 26 const float kTolerance = 1e-5; variable 114 EXPECT_NEAR(3.14, values.Get(0), kTolerance); in TEST() 126 EXPECT_NEAR(3.14, tag.Get(0), kTolerance); in TEST() 135 EXPECT_NEAR(3.14, feature.float_list().value(0), kTolerance); in TEST() 147 kTolerance); in TEST() 161 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); in TEST() 175 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); in TEST() 242 EXPECT_NEAR(1.1, tag_ro.Get(0), kTolerance); in TEST() 243 EXPECT_NEAR(2.2, tag_ro.Get(1), kTolerance); in TEST() 244 EXPECT_NEAR(3.3, tag_ro.Get(2), kTolerance); in TEST() [all …]
|
/external/webrtc/webrtc/base/ |
D | profiler_unittest.cc | 19 const double kTolerance = 0.1; variable 40 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance * 3); in TEST() 46 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance); in TEST() 47 EXPECT_NEAR(kWaitSec * 2, event->total_time(), kTolerance * 2); in TEST() 71 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST() 85 EXPECT_NEAR(kEvent2WaitSec, event2->mean(), kTolerance * 4); in TEST() 97 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); in TEST() 98 EXPECT_NEAR(kWaitSec * 2, event1->total_time(), kTolerance * 2); in TEST()
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | wpd_node_unittest.cc | 21 static const float kTolerance = 0.0001f; variable 51 EXPECT_NEAR(0.1f, node.data()[0], kTolerance); in TEST() 52 EXPECT_NEAR(0.2f, node.data()[1], kTolerance); in TEST() 53 EXPECT_NEAR(0.18f, node.data()[2], kTolerance); in TEST() 54 EXPECT_NEAR(0.56f, node.data()[3], kTolerance); in TEST() 55 EXPECT_NEAR(0.94f, node.data()[4], kTolerance); in TEST()
|
D | moving_moments_unittest.cc | 18 static const float kTolerance = 0.0001f; variable 55 EXPECT_NEAR(expected_mean[i], output_mean_[i], kTolerance); in CalculateMomentsAndVerify() 56 EXPECT_NEAR(expected_mean_squares[i], output_mean_squares_[i], kTolerance); in CalculateMomentsAndVerify()
|
D | transient_detector_unittest.cc | 83 const float kTolerance = 0.02f; in TEST() local 99 EXPECT_NEAR(file_value, detector_value, kTolerance) << "Frame: " in TEST()
|
D | wpd_tree_unittest.cc | 141 const float kTolerance = 0.03f; in TEST() local 176 EXPECT_NEAR(matlab_buffer[j], node_data[j], kTolerance) in TEST()
|
/external/tensorflow/tensorflow/core/kernels/boosted_trees/ |
D | tree_helper.h | 48 const float kTolerance = 1e-15; in GainsAreEqual() local 49 return std::abs(g1 - g2) < kTolerance; in GainsAreEqual() 53 const float kTolerance = 1e-15; in GainIsLarger() local 54 return g1 - g2 >= kTolerance; in GainIsLarger()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | sampling_kernels_test.cc | 31 constexpr float kTolerance = 1e-3; in TestKernelValues() local 32 EXPECT_NEAR(kernel(x[i]), expected[i], kTolerance); in TestKernelValues() 33 EXPECT_NEAR(kernel(-x[i]), expected[i], kTolerance); in TestKernelValues()
|
D | quantization_utils_test.cc | 711 const double kTolerance = .5 / 128.0; in TestQuantizedTensorToFloat() local 712 test::ExpectTensorNear<float>(expected, output32, kTolerance); in TestQuantizedTensorToFloat()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_view_embeddertest.cpp | 148 const double kTolerance = 0.0001; in TEST_F() local 167 EXPECT_NEAR(9.5625, page_x, kTolerance); in TEST_F() 168 EXPECT_NEAR(775.5, page_y, kTolerance); in TEST_F() 174 EXPECT_NEAR(12.75, page_x, kTolerance); in TEST_F() 175 EXPECT_NEAR(12.375, page_y, kTolerance); in TEST_F() 181 EXPECT_NEAR(602.4374, page_x, kTolerance); in TEST_F() 182 EXPECT_NEAR(16.5, page_y, kTolerance); in TEST_F() 188 EXPECT_NEAR(599.25, page_x, kTolerance); in TEST_F() 189 EXPECT_NEAR(779.625, page_y, kTolerance); in TEST_F() 197 EXPECT_NEAR(9.5625, page_x, kTolerance); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | buffer_comparator.cc | 36 static constexpr double kTolerance = 0.1f; variable 612 lhs_typed, rhs_typed, static_cast<float>(kTolerance), in DeviceCompare() 659 kTolerance)) { in HostCompare()
|
/external/skia/src/core/ |
D | SkICC.cpp | 204 static constexpr float kTolerance = 1.0f / (1 << 11); in nearly_equal() local 205 return ::fabsf(x - y) <= kTolerance; in nearly_equal()
|
/external/skqp/src/core/ |
D | SkICC.cpp | 204 static constexpr float kTolerance = 1.0f / (1 << 11); in nearly_equal() local 205 return ::fabsf(x - y) <= kTolerance; in nearly_equal()
|
/external/skia/src/gpu/geometry/ |
D | GrQuadUtils.cpp | 22 static constexpr float kTolerance = 1e-9f; variable 730 correct_bad_coords(abs(denom) < kTolerance, &px, &py, nullptr); in computeDegenerateQuad() 792 if (SkScalarAbs(eDenom[0]) > kTolerance) { in computeDegenerateQuad() 796 if (SkScalarAbs(eDenom[1]) > kTolerance) { in computeDegenerateQuad() 1016 correct_bad_coords(abs(denom) < kTolerance, &fX, &fY, &fW); in moveTo() 1034 correct_bad_coords(abs(denom) < kTolerance, &fU, &fV, &fR); in moveTo() 1036 correct_bad_coords(abs(denom) < kTolerance, &fU, &fV, nullptr); in moveTo()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | mul_test.cc | 310 const float kTolerance = 1.4f; in NoActivationLargeMultiplier() local 312 ElementsAreArray(ArrayFloatNear({4, -6, 10, 2}, kTolerance))); in NoActivationLargeMultiplier()
|
D | activations_test.cc | 339 const float kTolerance = in TestQuantizedHardSwish() local 342 float_ref_output_values, kTolerance))); in TestQuantizedHardSwish()
|
/external/skia/src/utils/ |
D | SkShadowTessellator.cpp | 277 static constexpr auto kTolerance = 1.0e-2f; in computeConvexShadow() local 278 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { in computeConvexShadow() 280 auto newInset = SkScalarSqrt(minDistSq) - kTolerance; in computeConvexShadow()
|
/external/skqp/src/utils/ |
D | SkShadowTessellator.cpp | 274 static constexpr auto kTolerance = 1.0e-2f; in computeConvexShadow() local 275 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { in computeConvexShadow() 277 auto newInset = SkScalarSqrt(minDistSq) - kTolerance; in computeConvexShadow()
|
/external/skqp/tests/ |
D | ProcessorTest.cpp | 361 static constexpr SkScalar kTolerance = 0.01f; in fuzzy_color_equals() local 363 if (!SkScalarNearlyEqual(c1[i], c2[i], kTolerance)) { in fuzzy_color_equals()
|
/external/skia/tests/ |
D | ProcessorTest.cpp | 369 static constexpr SkScalar kTolerance = 0.01f; in fuzzy_color_equals() local 371 if (!SkScalarNearlyEqual(c1[i], c2[i], kTolerance)) { in fuzzy_color_equals()
|
/external/libaom/libaom/aom_dsp/ |
D | noise_model.c | 205 const double kTolerance = 1e-6; in set_chroma_coefficient_fallback_soln() local 210 if (fabs(eqns->A[last * eqns->n + last]) > kTolerance) { in set_chroma_coefficient_fallback_soln() 377 const double kTolerance = solver->max_intensity * 0.00625 / 255.0; in aom_noise_strength_solver_fit_piecewise() local 407 if (lut->num_points <= max_output_points && avg_residual > kTolerance) { in aom_noise_strength_solver_fit_piecewise()
|