/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
covariance_matrix_generator_unittest.cc | 28 const float kTolerance = 0.0001f; 41 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); 42 EXPECT_NEAR(actual_els[0][1].real(), 0.9998f, kTolerance); 43 EXPECT_NEAR(actual_els[1][0].real(), 0.9998f, kTolerance); 44 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); 46 EXPECT_NEAR(actual_els[0][0].imag(), 0.f, kTolerance); 47 EXPECT_NEAR(actual_els[0][1].imag(), 0.f, kTolerance); 48 EXPECT_NEAR(actual_els[1][0].imag(), 0.f, kTolerance); 49 EXPECT_NEAR(actual_els[1][1].imag(), 0.f, kTolerance); 56 const float kTolerance = 0.0001f [all...] |
matrix_test_helpers.h | 19 const float kTolerance = 0.001f; 53 EXPECT_NEAR(expected_elements[i][j], actual_elements[i][j], kTolerance); 70 kTolerance); 73 kTolerance);
|
/external/tensorflow/tensorflow/core/kernels/boosted_trees/ |
tree_helper.h | 23 const float kTolerance = 1e-15; 24 return std::abs(g1 - g2) < kTolerance; 28 const float kTolerance = 1e-15; 29 return g1 - g2 >= kTolerance;
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
wpd_node_unittest.cc | 21 static const float kTolerance = 0.0001f; 51 EXPECT_NEAR(0.1f, node.data()[0], kTolerance); 52 EXPECT_NEAR(0.2f, node.data()[1], kTolerance); 53 EXPECT_NEAR(0.18f, node.data()[2], kTolerance); 54 EXPECT_NEAR(0.56f, node.data()[3], kTolerance); 55 EXPECT_NEAR(0.94f, node.data()[4], kTolerance);
|
transient_detector_unittest.cc | 83 const float kTolerance = 0.02f; 99 EXPECT_NEAR(file_value, detector_value, kTolerance) << "Frame: "
|
wpd_tree_unittest.cc | 141 const float kTolerance = 0.03f; 176 EXPECT_NEAR(matlab_buffer[j], node_data[j], kTolerance)
|
moving_moments_unittest.cc | 18 static const float kTolerance = 0.0001f; 55 EXPECT_NEAR(expected_mean[i], output_mean_[i], kTolerance); 56 EXPECT_NEAR(expected_mean_squares[i], output_mean_squares_[i], kTolerance);
|
/external/webrtc/webrtc/base/ |
profiler_unittest.cc | 19 const double kTolerance = 0.1; 40 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance * 3); 46 EXPECT_NEAR(kWaitSec, event->mean(), kTolerance); 47 EXPECT_NEAR(kWaitSec * 2, event->total_time(), kTolerance * 2); 71 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); 85 EXPECT_NEAR(kEvent2WaitSec, event2->mean(), kTolerance * 4); 97 EXPECT_NEAR(kWaitSec, event1->mean(), kTolerance); 98 EXPECT_NEAR(kWaitSec * 2, event1->total_time(), kTolerance * 2);
|
/external/tensorflow/tensorflow/core/kernels/ |
sampling_kernels_test.cc | 31 constexpr float kTolerance = 1e-3; 32 EXPECT_NEAR(kernel(x[i]), expected[i], kTolerance); 33 EXPECT_NEAR(kernel(-x[i]), expected[i], kTolerance);
|
quantization_utils_test.cc | 711 const double kTolerance = .5 / 128.0; 712 test::ExpectTensorNear<float>(expected, output32, kTolerance); [all...] |
/external/tensorflow/tensorflow/core/example/ |
feature_util_test.cc | 26 const float kTolerance = 1e-5; 114 EXPECT_NEAR(3.14, values.Get(0), kTolerance); 126 EXPECT_NEAR(3.14, tag.Get(0), kTolerance); 135 EXPECT_NEAR(3.14, feature.float_list().value(0), kTolerance); 147 kTolerance); 161 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); 175 EXPECT_NEAR(3.14, tag_ro.Get(0), kTolerance); 242 EXPECT_NEAR(1.1, tag_ro.Get(0), kTolerance); 243 EXPECT_NEAR(2.2, tag_ro.Get(1), kTolerance); 244 EXPECT_NEAR(3.3, tag_ro.Get(2), kTolerance); [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
buffer_comparator.cc | 26 static constexpr float kTolerance = 0.1f; 154 return result < kTolerance; 193 kTolerance)) {
|
/external/skia/src/gpu/ops/ |
GrQuadPerEdgeAA.cpp | 50 static constexpr float kTolerance = 1e-2f; 107 correct_bad_edges(metadata.fInvLengths >= 1.f / kTolerance, &dx, &dy, nullptr); 112 if ((test < -kTolerance).anyTrue()) { 129 if ((metadata.fInvLengths >= 1.f / kTolerance).anyTrue()) { 189 correct_bad_edges(fma(e1x, e1x, e1y * e1y) < kTolerance * kTolerance, &e1x, &e1y, &e1w); 195 correct_bad_edges(fma(e2x, e2x, e2y * e2y) < kTolerance * kTolerance, &e2x, &e2y, &e2w); 252 correct_bad_coords(denom.abs() < kTolerance, &quad->fX, &quad->fY, &quad->fW); 259 correct_bad_edges(fma(e1u, e1u, e1v * e1v) < kTolerance * kTolerance, &e1u, &e1v, &e1r) [all...] |
/cts/tests/tests/graphics/jni/ |
android_graphics_cts_MediaVulkanGpuTest.cpp | 138 static const int32_t kTolerance = 0x30; 142 ASSERT(fuzzyMatch(value1, value2, kTolerance),
|
/external/skia/src/core/ |
SkICC.cpp | 204 static constexpr float kTolerance = 1.0f / (1 << 11); 205 return ::fabsf(x - y) <= kTolerance;
|
/external/skqp/src/core/ |
SkICC.cpp | 204 static constexpr float kTolerance = 1.0f / (1 << 11); 205 return ::fabsf(x - y) <= kTolerance;
|
/external/skia/src/utils/ |
SkShadowTessellator.cpp | 274 static constexpr auto kTolerance = 1.0e-2f; 275 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { 277 auto newInset = SkScalarSqrt(minDistSq) - kTolerance; [all...] |
/external/skqp/src/utils/ |
SkShadowTessellator.cpp | 274 static constexpr auto kTolerance = 1.0e-2f; 275 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { 277 auto newInset = SkScalarSqrt(minDistSq) - kTolerance; [all...] |
/external/skia/tests/ |
ProcessorTest.cpp | 368 static constexpr SkScalar kTolerance = 0.01f; 370 if (!SkScalarNearlyEqual(c1[i], c2[i], kTolerance)) { [all...] |
/external/skqp/tests/ |
ProcessorTest.cpp | 361 static constexpr SkScalar kTolerance = 0.01f; 363 if (!SkScalarNearlyEqual(c1[i], c2[i], kTolerance)) { [all...] |
/external/libaom/libaom/aom_dsp/ |
noise_model.c | 205 const double kTolerance = 1e-6; 210 if (fabs(eqns->A[last * eqns->n + last]) > kTolerance) { 376 const double kTolerance = solver->max_intensity * 0.00625 / 255.0; 406 if (lut->num_points <= max_output_points && avg_residual > kTolerance) { [all...] |