Searched refs:epsilon (Results 1 - 25 of 179) sorted by path

12345678

/external/bison/lib/
H A Dhash.c515 float epsilon; local
522 is 11 (due to next_prime's algorithm), so an epsilon of 0.1
524 epsilon = 0.1f;
526 if (epsilon < tuning->growth_threshold
527 && tuning->growth_threshold < 1 - epsilon
528 && 1 + epsilon < tuning->growth_factor
530 && tuning->shrink_threshold + epsilon < tuning->shrink_factor
532 && tuning->shrink_threshold + epsilon < tuning->growth_threshold)
/external/ceres-solver/include/ceres/
H A Djet.h38 // denoted with the greek symbol epsilon, such that e != 0 but e^2 = 0. Dual
652 static inline Real epsilon() { return Real(std::numeric_limits<T>::epsilon()); } function in struct:Eigen::NumTraits
H A Drotation.h340 // We use a threshold much larger then the machine epsilon, because
398 if (theta2 > T(std::numeric_limits<double>::epsilon())) {
584 if (theta2 > T(std::numeric_limits<double>::epsilon())) {
/external/ceres-solver/internal/ceres/
H A Ddogleg_strategy_test.cc122 const double kEpsilon = std::numeric_limits<double>::epsilon();
H A Dpolynomial_test.cc93 double epsilon) {
108 ExpectArraysClose(N, real.data(), real_roots, epsilon);
113 ExpectArraysClose(N, imaginary.data(), zeros.data(), epsilon);
90 RunPolynomialTestRealRoots(const double (&real_roots)[N], bool use_real, bool use_imaginary, double epsilon) argument
H A Drotation_test.cc56 static double const kTolerance = numeric_limits<double>::epsilon() * 10;
580 std::numeric_limits<double>::epsilon());
719 static_cast<int>(2 * log(numeric_limits<double>::epsilon())/log(10.0));
/external/chromium-trace/trace-viewer/src/base/unittest/
H A Dassertions.js190 var epsilon = opt_epsilon || 0.000001; // 6 digits.
194 if (relative_error < epsilon)
197 ' to be within ' + epsilon + ' was ' + relative_error;
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
H A DExternalVideoSurfaceContainerTest.java42 final float epsilon = 0.000001f;
46 if (Math.abs(rect.width() - widthCss) < epsilon
47 && Math.abs(rect.height() - heightCss) < epsilon) {
/external/chromium_org/cc/base/
H A Dmath_util.cc69 // We want to compute point p such that p.w == epsilon, where epsilon is a
73 // p.w = epsilon = (1-t) * h1.w + (t) * h2.w
85 // ...or any positive non-zero small epsilon
647 return std::abs(value) < std::numeric_limits<double>::epsilon();
/external/chromium_org/cc/layers/
H A Dpicture_layer_impl_unittest.cc2834 std::numeric_limits<float>::epsilon()) {
2849 std::numeric_limits<float>::epsilon()) {
2877 std::numeric_limits<float>::epsilon()) {
/external/chromium_org/cc/output/
H A Dgl_renderer.cc1483 if (alpha < std::numeric_limits<float>::epsilon() &&
1589 // minus epsilon for one pixel layers. The resulting clamp region
/external/chromium_org/cc/quads/
H A Ddraw_polygon_unittest.cc20 EXPECT_TRUE(std::abs(a - b) < std::numeric_limits<float>::epsilon());
/external/chromium_org/chrome/browser/thumbnails/
H A Dcontent_analysis.cc121 if (value_max - value_min <= std::numeric_limits<float>::epsilon() * 100.0f) {
/external/chromium_org/chrome/browser/ui/views/infobars/
H A Dinfobar_view.cc179 const SkScalar epsilon = 0.01f; local
180 fill_path_.rLineTo(-epsilon, 0);
182 fill_path_.rLineTo(epsilon - (arrow_fill_half_width * 2), 0);
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
H A DDeviceSensorsTest.java342 final double epsilon = 0.001;
344 assertEquals(expectedAngles[i], values[i], epsilon);
/external/chromium_org/media/audio/
H A Dsimple_sources_unittest.cc37 std::numeric_limits<float>::epsilon());
43 std::numeric_limits<float>::epsilon());
/external/chromium_org/media/base/
H A Daudio_bus_unittest.cc41 // Verify values for each channel in |result| are within |epsilon| of
42 // |expected|. If |epsilon| exactly equals 0, uses FLOAT_EQ macro.
44 float epsilon) {
50 if (epsilon == 0) {
54 epsilon);
277 // Biased uint8 calculations have poor precision, so the epsilon here is
43 VerifyBusWithEpsilon(const AudioBus* result, const AudioBus* expected, float epsilon) argument
H A Daudio_renderer_mixer_unittest.cc37 // Tuple of <input sampling rate, output sampling rate, epsilon>.
99 bool ValidateAudioData(int index, int frames, float scale, double epsilon) { argument
104 if (error > epsilon) {
106 audio_bus_->channel(i)[j], epsilon)
H A Dsinc_resampler.cc204 std::numeric_limits<double>::epsilon()) {
/external/chromium_org/native_client_sdk/src/examples/demo/flock/
H A Dframe_counter.cc31 if (fabs(elapsed_time) > std::numeric_limits<double>::epsilon()) {
H A Dvector2.h42 if (fabs(mag) < std::numeric_limits<double>::epsilon())
/external/chromium_org/ppapi/tests/
H A Dtest_case.h588 std::numeric_limits<double>::epsilon())) {
H A Dtest_x509_certificate_private.cc37 std::numeric_limits<double>::epsilon();
/external/chromium_org/skia/ext/
H A Dimage_operations.cc55 if (x > -std::numeric_limits<float>::epsilon() &&
56 x < std::numeric_limits<float>::epsilon())
81 if (x > -std::numeric_limits<float>::epsilon() &&
82 x < std::numeric_limits<float>::epsilon())
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DFontSize.cpp44 if (fabsf(specifiedSize) < std::numeric_limits<float>::epsilon())

Completed in 748 milliseconds

12345678