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

12345678

/external/chromium_org/ui/gfx/geometry/
H A Dcubic_bezier_unittest.cc16 double epsilon = 0.00015; local
18 EXPECT_NEAR(function.Solve(0), 0, epsilon);
19 EXPECT_NEAR(function.Solve(0.05), 0.01136, epsilon);
20 EXPECT_NEAR(function.Solve(0.1), 0.03978, epsilon);
21 EXPECT_NEAR(function.Solve(0.15), 0.079780, epsilon);
22 EXPECT_NEAR(function.Solve(0.2), 0.12803, epsilon);
23 EXPECT_NEAR(function.Solve(0.25), 0.18235, epsilon);
24 EXPECT_NEAR(function.Solve(0.3), 0.24115, epsilon);
25 EXPECT_NEAR(function.Solve(0.35), 0.30323, epsilon);
26 EXPECT_NEAR(function.Solve(0.4), 0.36761, epsilon);
44 double epsilon = 0.00015; local
70 double epsilon = 0.00015; local
142 double epsilon = 0.00015; local
[all...]
H A Dmatrix3_f.cc104 if (std::numeric_limits<float>::epsilon() > std::abs(determinant))
126 const float epsilon = std::numeric_limits<float>::epsilon(); local
127 if (std::abs(data_[M01] - data_[M10]) > epsilon ||
128 std::abs(data_[M02] - data_[M20]) > epsilon ||
129 std::abs(data_[M12] - data_[M21]) > epsilon) {
140 bool diagonal = std::abs(p) < epsilon;
/external/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
H A Depsilon.pass.cpp12 // epsilon()
22 assert(std::numeric_limits<T>::epsilon() == expected);
23 assert(std::numeric_limits<const T>::epsilon() == expected);
24 assert(std::numeric_limits<volatile T>::epsilon() == expected);
25 assert(std::numeric_limits<const volatile T>::epsilon() == expected);
/external/stlport/test/unit/
H A Dmath_aux.h21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon();
24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
/external/chromium_org/third_party/skia/src/pathops/
H A DSkPathOpsTypes.cpp10 static bool arguments_denormalized(float a, float b, int epsilon) { argument
11 float denormalizedCheck = FLT_EPSILON * epsilon / 2;
17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { argument
27 return aBits < bBits + epsilon && bBits < aBits + epsilon;
30 static bool d_equal_ulps(float a, float b, int epsilon) { argument
37 return aBits < bBits + epsilon && bBits < aBits + epsilon;
40 static bool not_equal_ulps(float a, float b, int epsilon) { argument
44 if (arguments_denormalized(a, b, epsilon)) {
53 d_not_equal_ulps(float a, float b, int epsilon) argument
63 less_ulps(float a, float b, int epsilon) argument
76 less_or_equal_ulps(float a, float b, int epsilon) argument
[all...]
/external/skia/src/pathops/
H A DSkPathOpsTypes.cpp10 static bool arguments_denormalized(float a, float b, int epsilon) { argument
11 float denormalizedCheck = FLT_EPSILON * epsilon / 2;
17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { argument
27 return aBits < bBits + epsilon && bBits < aBits + epsilon;
30 static bool d_equal_ulps(float a, float b, int epsilon) { argument
37 return aBits < bBits + epsilon && bBits < aBits + epsilon;
40 static bool not_equal_ulps(float a, float b, int epsilon) { argument
44 if (arguments_denormalized(a, b, epsilon)) {
53 d_not_equal_ulps(float a, float b, int epsilon) argument
63 less_ulps(float a, float b, int epsilon) argument
76 less_or_equal_ulps(float a, float b, int epsilon) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
H A DFloatSize.cpp51 return fabs(m_width) < std::numeric_limits<float>::epsilon() && fabs(m_height) < std::numeric_limits<float>::epsilon();
/external/chromium_org/third_party/WebKit/Source/platform/animation/
H A DUnitBezier.h95 double solveCurveX(double x, double epsilon) argument
110 if (fabs (x2) < epsilon)
125 if (fabs(x2 - x) < epsilon)
138 // Evaluates y at the given x. The epsilon parameter provides a hint as to the required
140 double solve(double x, double epsilon) argument
146 return sampleCurveY(solveCurveX(x, epsilon));
H A DTimingFunction.cpp68 if (std::abs(a) < std::numeric_limits<double>::epsilon()
69 && std::abs(b) < std::numeric_limits<double>::epsilon()) {
76 if (std::abs(a) < std::numeric_limits<double>::epsilon()) {
106 double solutionMin = m_bezier->solve(*minValue, std::numeric_limits<double>::epsilon());
107 double solutionMax = m_bezier->solve(*maxValue, std::numeric_limits<double>::epsilon());
/external/replicaisland/src/com/replica/replicaisland/
H A DUtils.java27 public final static boolean close(float a, float b, float epsilon) { argument
28 return Math.abs(a - b) < epsilon;
/external/chromium_org/third_party/WebKit/Source/core/rendering/line/
H A DLineWidth.h49 bool fitsOnLine() const { return currentWidth() <= (m_availableWidth + LayoutUnit::epsilon()); }
50 bool fitsOnLine(float extra) const { return currentWidth() + extra <= (m_availableWidth + LayoutUnit::epsilon()); }
53 return currentWidth() - (whitespaceTreatment == ExcludeWhitespace ? trailingWhitespaceWidth() : 0) + extra <= (m_availableWidth + LayoutUnit::epsilon());
/external/eigen/test/eigen2/
H A Deigen2_prec_inverse_4x4.cpp24 template<typename T> inline typename NumTraits<T>::Real epsilon() function
26 return std::numeric_limits<typename NumTraits<T>::Real>::epsilon();
42 double error = double( (m*inv-MatrixType::Identity()).norm() / epsilon<Scalar>() );
60 } while(absdet < 10 * epsilon<Scalar>());
62 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon<Scalar>() );
/external/chromium_org/v8/test/mjsunit/
H A Dsin-cos.js118 var epsilon = 0.0000001; variable
121 test_inputs.push(0 + epsilon);
122 test_inputs.push(0 - epsilon);
124 test_inputs.push(Math.PI/2 + epsilon);
125 test_inputs.push(Math.PI/2 - epsilon);
127 test_inputs.push(Math.PI + epsilon);
128 test_inputs.push(Math.PI - epsilon);
130 test_inputs.push(- 2*Math.PI + epsilon);
131 test_inputs.push(- 2*Math.PI - epsilon);
165 function assertError(expected, x, epsilon) {
[all...]
/external/chromium_org/third_party/skia/experimental/Intersection/
H A DCubicIntersection_TestData.cpp13 {{1 + PointEpsilon - std::numeric_limits<double>::epsilon(), 1},
14 {1, 1 + PointEpsilon - std::numeric_limits<double>::epsilon()}, {1, 1}, {1, 1}},
15 {{1 + PointEpsilon/2 - std::numeric_limits<double>::epsilon(), 1},
16 {1 - (PointEpsilon/2 - std::numeric_limits<double>::epsilon()), 1}, {1, 1}, {1, 1}}
22 {{1 + PointEpsilon + std::numeric_limits<double>::epsilon(), 1}, {1, 1 + PointEpsilon}, {1, 1}, {1, 1}},
23 {{1 + PointEpsilon/2 + std::numeric_limits<double>::epsilon(), 1}, {1 - PointEpsilon/2, 1}, {1, 1}, {1, 1}}
205 {{1, 1}, {3, 3}, {2, 2}, {4, 4+F}}, // INVESTIGATE: why the epsilon is bigger
206 {{1, 1+F}, {2, 2}, {4, 4}, {3, 3}}, // INVESTIGATE: why the epsilon is bigger
255 {{1, 1}, {4, 4}, {3, 3}, {2+G, 2}}, // INVESTIGATE: why the epsilon is smaller
259 {{2+G, 2}, {3, 3}, {4, 4}, {1, 1}}, // INVESTIGATE: why the epsilon i
[all...]
/external/eigen/Eigen/src/Core/
H A DNumTraits.h45 * \li An epsilon() function which, unlike std::numeric_limits::epsilon(), returns a \a Real instead of a \a T.
46 * \li A dummy_precision() function returning a weak epsilon value. It is mainly used as a default
71 static inline Real epsilon() { return std::numeric_limits<T>::epsilon(); }
120 static inline Real epsilon() { return NumTraits<Real>::epsilon(); }
144 static inline RealScalar epsilon() { return NumTraits<RealScalar>::epsilon(); }
/external/skia/experimental/Intersection/
H A DCubicIntersection_TestData.cpp13 {{1 + PointEpsilon - std::numeric_limits<double>::epsilon(), 1},
14 {1, 1 + PointEpsilon - std::numeric_limits<double>::epsilon()}, {1, 1}, {1, 1}},
15 {{1 + PointEpsilon/2 - std::numeric_limits<double>::epsilon(), 1},
16 {1 - (PointEpsilon/2 - std::numeric_limits<double>::epsilon()), 1}, {1, 1}, {1, 1}}
22 {{1 + PointEpsilon + std::numeric_limits<double>::epsilon(), 1}, {1, 1 + PointEpsilon}, {1, 1}, {1, 1}},
23 {{1 + PointEpsilon/2 + std::numeric_limits<double>::epsilon(), 1}, {1 - PointEpsilon/2, 1}, {1, 1}, {1, 1}}
205 {{1, 1}, {3, 3}, {2, 2}, {4, 4+F}}, // INVESTIGATE: why the epsilon is bigger
206 {{1, 1+F}, {2, 2}, {4, 4}, {3, 3}}, // INVESTIGATE: why the epsilon is bigger
255 {{1, 1}, {4, 4}, {3, 3}, {2+G, 2}}, // INVESTIGATE: why the epsilon is smaller
259 {{2+G, 2}, {3, 3}, {4, 4}, {1, 1}}, // INVESTIGATE: why the epsilon i
[all...]
/external/eigen/test/
H A Dprec_inverse_4x4.cpp22 double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits<Scalar>::epsilon() );
42 } while(absdet < NumTraits<Scalar>::epsilon());
44 double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits<Scalar>::epsilon() );
/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/eigen/unsupported/Eigen/src/NonLinearOptimization/
H A Dchkder.h25 const Scalar eps = sqrt(NumTraits<Scalar>::epsilon());
26 const Scalar epsf = chkder_factor * NumTraits<Scalar>::epsilon();
56 if (temp > NumTraits<Scalar>::epsilon() && temp < eps)
/external/libvorbis/lib/
H A Dlpc.c65 double epsilon; local
80 epsilon=1e-9*aut[0]+1e-10;
85 if(error<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()) {
/external/deqp/framework/delibs/decpp/
H A DdeRandom.cpp91 const float epsilon = 0.01f; local
94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon);
101 const float epsilon = 0.01f;
104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < 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/third_party/skia/tests/
H A DPathOpsAngleTest.cpp55 int epsilon = abs(p1Bits - p2Bits); local
56 if (maxEpsilon < epsilon) {
58 " epsilon=%d\n",
59 line[1].fX, line[1].fY, t, test.fX, test.fY, epsilon);
60 maxEpsilon = epsilon;
108 int epsilon = abs(p1Bits - p2Bits); local
109 if (maxEpsilon < epsilon) {
111 " pt={%1.7g, %1.7g} epsilon=%d\n",
112 line[1].fX, line[1].fY, t, t2, t3, moveT, last.fX, last.fY, epsilon);
113 maxEpsilon = epsilon;
[all...]
/external/skia/tests/
H A DPathOpsAngleTest.cpp55 int epsilon = abs(p1Bits - p2Bits); local
56 if (maxEpsilon < epsilon) {
58 " epsilon=%d\n",
59 line[1].fX, line[1].fY, t, test.fX, test.fY, epsilon);
60 maxEpsilon = epsilon;
108 int epsilon = abs(p1Bits - p2Bits); local
109 if (maxEpsilon < epsilon) {
111 " pt={%1.7g, %1.7g} epsilon=%d\n",
112 line[1].fX, line[1].fY, t, t2, t3, moveT, last.fX, last.fY, epsilon);
113 maxEpsilon = epsilon;
[all...]

Completed in 659 milliseconds

12345678