Searched defs:epsilon (Results 1 - 25 of 61) sorted by relevance

123

/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 Dquad_unittest.cc98 float epsilon = std::numeric_limits<float>::epsilon(); local
99 PointF a2(1 + epsilon / 2, 1 + epsilon / 2);
100 PointF b2(2 + epsilon / 2, 1 + epsilon / 2);
101 PointF c2(2 + epsilon / 2, 2 + epsilon / 2);
102 PointF d2(1 + epsilon / 2, 2 + epsilon /
[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/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/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/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/mesa/src/src/mesa/main/
H A Ddrawpix.c326 const GLfloat epsilon = 0.0001F; local
327 GLint x = IFLOOR(ctx->Current.RasterPos[0] + epsilon - xorig);
328 GLint y = IFLOOR(ctx->Current.RasterPos[1] + epsilon - yorig);
/external/fonttools/Lib/fontTools/misc/
H A DbezierTools.py21 epsilon = 1e-12 variable
263 if abs(a) < epsilon:
264 if abs(b) < epsilon:
294 if abs(a) < epsilon:
/external/fonttools/Tools/fontTools/misc/
H A DbezierTools.py21 epsilon = 1e-12 variable
263 if abs(a) < epsilon:
264 if abs(b) < epsilon:
294 if abs(a) < epsilon:
/external/libvorbis/lib/
H A Dlpc.c65 double epsilon; local
80 epsilon=1e-9*aut[0]+1e-10;
85 if(error<epsilon){
/external/mesa3d/src/mesa/main/
H A Ddrawpix.c326 const GLfloat epsilon = 0.0001F; local
327 GLint x = IFLOOR(ctx->Current.RasterPos[0] + epsilon - xorig);
328 GLint y = IFLOOR(ctx->Current.RasterPos[1] + epsilon - yorig);
/external/ceres-solver/internal/ceres/
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
/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)
/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));
/external/opencv/cvaux/src/
H A Dcvlevmar.cpp60 int maxIter,double epsilon)
125 if( epsilon < 0 )
226 } while ( change > epsilon && currIter < maxIter );
56 cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction, pointer_LMFunc function, CvMat *X0,CvMat *observRes,CvMat *resultX, int maxIter,double epsilon) argument
/external/srec/srec/include/
H A Dcomp_stats.h84 CS_CLOCK epsilon; member in struct:COMP_STATS_t
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
H A DHTMLScriptRunner.cpp158 const double epsilon = 1; local
159 if (pendingScriptType == PendingScript::ParsingBlocking && !m_parserBlockingScriptAlreadyLoaded && compilationFinishTime > epsilon && loadFinishTime > 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/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/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/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/stlport/test/unit/
H A Dnum_put_get_test.cpp58 float epsilon = numeric_limits<float>::epsilon(); local
59 return val <= ref + epsilon && val >= ref - epsilon;
64 double epsilon = numeric_limits<double>::epsilon(); local
65 return val <= ref + epsilon && val >= ref - epsilon;
/external/valgrind/main/drd/tests/
H A Domp_matinv.c262 /** Compute epsilon for the numeric type elem_t. Epsilon is defined as the
267 static elem_t epsilon() function
324 eps = epsilon();
334 printf("error = %g; epsilon = %g; error / (epsilon * n) = %g\n",

Completed in 803 milliseconds

123