Home
last modified time | relevance | path

Searched refs:kTolerance (Results 1 – 20 of 20) sorted by relevance

/external/webrtc/webrtc/modules/audio_processing/beamformer/
Dcovariance_matrix_generator_unittest.cc28 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 …]
Dmatrix_test_helpers.h19 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/
Dfeature_util_test.cc26 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/
Dprofiler_unittest.cc19 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/
Dwpd_node_unittest.cc21 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()
Dmoving_moments_unittest.cc18 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()
Dtransient_detector_unittest.cc83 const float kTolerance = 0.02f; in TEST() local
99 EXPECT_NEAR(file_value, detector_value, kTolerance) << "Frame: " in TEST()
Dwpd_tree_unittest.cc141 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/
Dtree_helper.h23 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/
DGrQuadPerEdgeAA.cpp50 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/
Dsampling_kernels_test.cc31 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()
Dquantization_utils_test.cc711 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/
Dbuffer_comparator.cc26 static constexpr float kTolerance = 0.1f; variable
154 return result < kTolerance; in CompareEqualImpl()
193 kTolerance)) { in CompareEqual()
/external/skia/src/core/
DSkICC.cpp204 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/
DSkICC.cpp204 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/
DSkShadowTessellator.cpp274 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/
DSkShadowTessellator.cpp274 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/
DProcessorTest.cpp361 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/
DProcessorTest.cpp368 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/
Dnoise_model.c205 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()