/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 | 23 const float kTolerance = 1e-15; in GainsAreEqual() local 24 return std::abs(g1 - g2) < kTolerance; in GainsAreEqual() 28 const float kTolerance = 1e-15; in GainIsLarger() local 29 return g1 - g2 >= kTolerance; in GainIsLarger()
|
/external/skia/src/gpu/ops/ |
D | GrQuadPerEdgeAA.cpp | 50 static constexpr float kTolerance = 1e-2f; variable 107 correct_bad_edges(metadata.fInvLengths >= 1.f / kTolerance, &dx, &dy, nullptr); in get_edge_equations() 112 if ((test < -kTolerance).anyTrue()) { in get_edge_equations() 129 if ((metadata.fInvLengths >= 1.f / kTolerance).anyTrue()) { in get_optimized_outset() 189 correct_bad_edges(fma(e1x, e1x, e1y * e1y) < kTolerance * kTolerance, &e1x, &e1y, &e1w); in outset_projected_vertices() 195 correct_bad_edges(fma(e2x, e2x, e2y * e2y) < kTolerance * kTolerance, &e2x, &e2y, &e2w); in outset_projected_vertices() 252 correct_bad_coords(denom.abs() < kTolerance, &quad->fX, &quad->fY, &quad->fW); in outset_projected_vertices() 259 correct_bad_edges(fma(e1u, e1u, e1v * e1v) < kTolerance * kTolerance, &e1u, &e1v, &e1r); in outset_projected_vertices() 264 correct_bad_edges(fma(e2u, e2u, e2v * e2v) < kTolerance * kTolerance, &e2u, &e2v, &e2r); in outset_projected_vertices() 270 correct_bad_coords(denom.abs() < kTolerance, &quad->fU, &quad->fV, &quad->fR); in outset_projected_vertices() [all …]
|
/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/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | buffer_comparator.cc | 26 static constexpr float kTolerance = 0.1f; variable 154 return result < kTolerance; in CompareEqualImpl() 193 kTolerance)) { in CompareEqual()
|
/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/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/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 | 368 static constexpr SkScalar kTolerance = 0.01f; in fuzzy_color_equals() local 370 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() 376 const double kTolerance = solver->max_intensity * 0.00625 / 255.0; in aom_noise_strength_solver_fit_piecewise() local 406 if (lut->num_points <= max_output_points && avg_residual > kTolerance) { in aom_noise_strength_solver_fit_piecewise()
|