/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
H A D | covariance_matrix_generator_unittest.cc | 28 const float kTolerance = 0.0001f; local 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 local 93 const float kTolerance = 0.0001f; local 150 const float kTolerance = 0.0001f; local 188 const float kTolerance = 0.0001f; local [all...] |
H A D | matrix_test_helpers.h | 19 const float kTolerance = 0.001f; member in namespace:__anon20962 53 EXPECT_NEAR(expected_elements[i][j], actual_elements[i][j], kTolerance); 70 kTolerance); 73 kTolerance);
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
H A D | wpd_node_unittest.cc | 21 static const float kTolerance = 0.0001f; member in namespace:webrtc 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);
|
H A D | transient_detector_unittest.cc | 83 const float kTolerance = 0.02f; local 99 EXPECT_NEAR(file_value, detector_value, kTolerance) << "Frame: "
|
H A D | wpd_tree_unittest.cc | 141 const float kTolerance = 0.03f; local 176 EXPECT_NEAR(matlab_buffer[j], node_data[j], kTolerance)
|
H A D | moving_moments_unittest.cc | 18 static const float kTolerance = 0.0001f; member in namespace:webrtc 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/ |
H A D | profiler_unittest.cc | 19 const double kTolerance = 0.1; member in namespace:__anon20700 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/ceres-solver/internal/ceres/ |
H A D | block_random_access_diagonal_matrix_test.cc | 94 double kTolerance = 1e-14; local 99 kTolerance); 104 kTolerance); 109 kTolerance); 112 EXPECT_NEAR(dense.norm(), sqrt(9.0 + 16. * 16. + 81.0 * 25.), kTolerance);
|
H A D | autodiff_local_parameterization_test.cc | 91 const double kTolerance = 1e-14; local 101 EXPECT_NEAR(x_plus_delta[0], 1.0, kTolerance); 102 EXPECT_NEAR(x_plus_delta[1], 3.2345, kTolerance); 103 EXPECT_NEAR(x_plus_delta[2], 5.469, kTolerance); 110 EXPECT_NEAR(jacobian[k], (i == j) ? 1.2345 : 0.0, kTolerance); 147 const double kTolerance = 1e-14; local 163 EXPECT_NEAR(x_plus_delta[i], x_plus_delta_ref[i], kTolerance); 172 EXPECT_NEAR(x_plus_delta_norm, 1.0, kTolerance); 176 EXPECT_NEAR(jacobian[i], jacobian_ref[i], kTolerance)
|
H A D | block_random_access_sparse_matrix_test.cc | 98 double kTolerance = 1e-14; local 103 kTolerance); 107 kTolerance); 111 kTolerance); 115 kTolerance); 119 kTolerance);
|
H A D | small_blas_test.cc | 40 const double kTolerance = 1e-16; local 73 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) 91 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) 108 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) 123 const double kTolerance = 1e-16; local 156 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) 173 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) 190 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) 205 const double kTolerance = 1e-16; local 229 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0.0, kTolerance) 254 const double kTolerance = 1e-16; local [all...] |
H A D | dynamic_numeric_diff_cost_function_test.cc | 41 const double kTolerance = 1e-6; member in namespace:ceres::internal 140 EXPECT_NEAR(-1.0, jacobian_vect[0][2*p * 10 + p], kTolerance); 142 EXPECT_NEAR(+1.0, jacobian_vect[0][(2*p+1) * 10 + p], kTolerance); 149 EXPECT_NEAR(4 * p - 8, jacobian_vect[0][20 * 10 + p], kTolerance); 153 EXPECT_NEAR(0.0, jacobian_vect[0][i], kTolerance); 158 EXPECT_NEAR(1.0, jacobian_vect[1][20 * 5 + p], kTolerance); 162 EXPECT_NEAR(0.0, jacobian_vect[1][i], kTolerance); 208 EXPECT_NEAR(1.0, jacobian_vect[1][20 * 5 + p], kTolerance); 257 EXPECT_NEAR(-1.0, jacobian_vect[0][2*p * 10 + p], kTolerance); 259 EXPECT_NEAR(+1.0, jacobian_vect[0][(2*p+1) * 10 + p], kTolerance); [all...] |
H A D | dogleg_strategy_test.cc | 120 const double kTolerance = 1e-14; member in namespace:ceres::internal::__anon668 213 EXPECT_NEAR(basis.col(0).norm(), 1.0, kTolerance); 214 EXPECT_NEAR(basis.col(1).norm(), 1.0, kTolerance); 215 EXPECT_NEAR(basis.col(0).dot(basis.col(1)), 0.0, kTolerance); 221 kTolerance); 227 kTolerance);
|
H A D | levenberg_marquardt_strategy_test.cc | 50 const double kTolerance = 1e-16; member in namespace:ceres::internal 71 EXPECT_NEAR(per_solve_options.D[i], diagonal_[i], kTolerance)
|
H A D | rotation_test.cc | 56 static double const kTolerance = numeric_limits<double>::epsilon() * 10; member in namespace:ceres::internal 72 if (fabs(norm2 - 1.0) > kTolerance) { 94 if (fabs(arg[i] - expected[i]) > kTolerance) { 106 if (fabs(arg[i] + expected[i]) > kTolerance) { 140 if (fabs(arg[i] - expected[i]) > kTolerance) { 165 if (fabs(expected - v) > kTolerance) { 188 if (fabs(arg[i] - expected[i]) > kTolerance) { 681 return absdiff <= kTolerance; 684 return reldiff <= kTolerance; 859 ExpectArraysClose(9, Q[0], Rq[0], kTolerance); [all...] |
H A D | local_parameterization_test.cc | 160 const double kTolerance = 1e-14; local 168 EXPECT_NEAR(x_plus_delta[i], x_plus_delta_ref[i], kTolerance); 177 EXPECT_NEAR(x_plus_delta_norm, 1.0, kTolerance); 192 EXPECT_NEAR(jacobian[i], jacobian_ref[i], kTolerance)
|
H A D | cost_function_to_functor_test.cc | 38 const double kTolerance = 1e-18; member in namespace:ceres::internal 91 EXPECT_NEAR(residuals[i], actual_residuals[i], kTolerance) 103 EXPECT_NEAR(residuals[i], actual_residuals[i], kTolerance) 108 EXPECT_NEAR(jacobians[i], actual_jacobians[i], kTolerance)
|
H A D | jet_test.cc | 61 double const kTolerance = 1e-13; member in namespace:ceres::internal 64 ExpectClose(x.a, y.a, kTolerance); 65 ExpectClose(x.v[0], y.v[0], kTolerance); 66 ExpectClose(x.v[1], y.v[1], kTolerance);
|
H A D | covariance_test.cc | 350 const double kTolerance = 1e-5; local 351 EXPECT_NEAR(diff_norm, 0.0, kTolerance) 748 const double kTolerance = 1e-16; local 756 EXPECT_NEAR((expected - actual).norm(), 0.0, kTolerance) 765 EXPECT_NEAR((expected - actual).norm(), 0.0, kTolerance)
|
H A D | autodiff_test.cc | 372 const double kTolerance = 1e-14; local 374 EXPECT_NEAR(J_x[2 * i + 0], i * x[1] * x[1], kTolerance) << "i: " << i; 375 EXPECT_NEAR(J_x[2 * i + 1], 2 * i * x[0] * x[1], kTolerance)
|
H A D | compressed_row_sparse_matrix_test.cc | 496 const double kTolerance = 1e-18; local 501 // kTolerance of each other. 559 ASSERT_NEAR(diff_norm, 0.0, kTolerance)
|
/external/skia/tests/ |
H A D | SkColor4fTest.cpp | 18 const float kTolerance = 1.0f / (1 << 20); variable 20 static bool nearly_equal(float a, float b, float tol = kTolerance) { argument 25 static bool nearly_equal(const SkPM4f a, const SkPM4f& b, float tol = kTolerance) { argument 209 const float kTolerance = 1.0f / 255; local 226 if (!nearly_equal(r4f, r32_4f, kTolerance)) {
|
H A D | Float16Test.cpp | 17 const float kTolerance = 1.0f / (1 << (8 + 10)); local 23 return fabsf(a2 - b2) <= kTolerance;
|