Searched defs:tolerance (Results 1 - 25 of 40) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/
H A DLayoutUnitTest.cpp69 const float tolerance = 1.0f / kFixedPointDenominator; local
72 ASSERT_NEAR(LayoutUnit(1.1f).toFloat(), 1.1f, tolerance);
73 ASSERT_NEAR(LayoutUnit(1.33f).toFloat(), 1.33f, tolerance);
74 ASSERT_NEAR(LayoutUnit(1.3333f).toFloat(), 1.3333f, tolerance);
75 ASSERT_NEAR(LayoutUnit(1.53434f).toFloat(), 1.53434f, tolerance);
76 ASSERT_NEAR(LayoutUnit(345634).toFloat(), 345634.0f, tolerance);
77 ASSERT_NEAR(LayoutUnit(345634.12335f).toFloat(), 345634.12335f, tolerance);
78 ASSERT_NEAR(LayoutUnit(-345634.12335f).toFloat(), -345634.12335f, tolerance);
79 ASSERT_NEAR(LayoutUnit(-345634).toFloat(), -345634.0f, tolerance);
/external/ceres-solver/internal/ceres/
H A Dincomplete_lq_factorization_test.cc44 const double tolerance) {
53 EXPECT_NEAR(expected.values()[i], actual.values()[i], tolerance);
42 ExpectMatricesAreEqual(const CompressedRowSparseMatrix& expected, const CompressedRowSparseMatrix& actual, const double tolerance) argument
H A Dnumeric_diff_test_utils.cc78 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; local
81 ExpectClose(x2[i], dydx1[5 * 0 + i], tolerance); // y1
82 ExpectClose(x1[i], dydx2[5 * 0 + i], tolerance);
83 ExpectClose(2 * x2[i] * residuals[0], dydx1[5 * 1 + i], tolerance); // y2
84 ExpectClose(2 * x1[i] * residuals[0], dydx2[5 * 1 + i], tolerance);
85 ExpectClose(0.0, dydx1[5 * 2 + i], tolerance); // y3
86 ExpectClose(2 * x2[i], dydx2[5 * 2 + i], tolerance);
148 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; local
151 ExpectClose( x2[i] * cos(x1x2), dydx1[5 * 0 + i], tolerance); local
152 ExpectClose( x1[i] * cos(x1x2), dydx2[5 * 0 + i], tolerance); local
[all...]
/external/chromium_org/third_party/skia/include/effects/
H A DSkAvoidXfermode.h28 There are two modes, and each mode interprets a tolerance value.
40 static SkAvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) { argument
41 return SkNEW_ARGS(SkAvoidXfermode, (opColor, tolerance, mode));
56 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
/external/skia/include/effects/
H A DSkAvoidXfermode.h28 There are two modes, and each mode interprets a tolerance value.
40 static SkAvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) { argument
41 return SkNEW_ARGS(SkAvoidXfermode, (opColor, tolerance, mode));
56 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
/external/eigen/Eigen/src/SparseCore/
H A DSparseSparseProductWithPruning.h20 static void sparse_sparse_product_with_pruning_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res, const typename ResultType::RealScalar& tolerance) argument
70 for (typename AmbiVector<Scalar,Index>::Iterator it(tempVector,tolerance); it; ++it)
88 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
91 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,ResultType>(lhs, rhs, _res, tolerance);
100 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
105 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,SparseTemporaryType>(lhs, rhs, _res, tolerance);
114 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
118 internal::sparse_sparse_product_with_pruning_impl<Rhs,Lhs,ResultType>(rhs, lhs, _res, tolerance);
127 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
133 internal::sparse_sparse_product_with_pruning_impl<ColMajorMatrixLhs,ColMajorMatrixRhs,ResultType>(colLhs, colRhs, res, tolerance);
[all...]
H A DSparseProduct.h103 EIGEN_STRONG_INLINE SparseSparseProduct(const Lhs& lhs, const Rhs& rhs, const RealScalar& tolerance) argument
104 : m_lhs(lhs), m_rhs(rhs), m_tolerance(tolerance), m_conservative(false)
/external/eigen/test/eigen2/
H A Deigen2_regression.cpp54 typename VectorType::Scalar tolerance)
61 VERIFY(ei_abs(error) < ei_abs(tolerance));
69 typename VectorType::Scalar tolerance)
76 std::cout << ei_abs(error) << " xxx " << ei_abs(tolerance) << std::endl;
77 VERIFY(ei_abs(error) < ei_abs(tolerance));
51 check_linearRegression(int numPoints, VectorType **points, const VectorType& original, typename VectorType::Scalar tolerance) argument
66 check_fitHyperplane(int numPoints, VectorType **points, const HyperplaneType& original, typename VectorType::Scalar tolerance) argument
/external/skia/src/effects/
H A DSkAvoidXfermode.cpp14 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { argument
15 if (tolerance > 255) {
16 tolerance = 255;
20 fDistMul = (256 << 14) / (tolerance + 1);
/external/chromium_org/third_party/WebKit/Source/platform/animation/
H A DTimingFunctionTest.cpp323 double tolerance = 0.01; local
325 EXPECT_NEAR(0.418, cubicEaseTiming->evaluate(0.25, tolerance), tolerance);
326 EXPECT_NEAR(0.805, cubicEaseTiming->evaluate(0.50, tolerance), tolerance);
327 EXPECT_NEAR(0.960, cubicEaseTiming->evaluate(0.75, tolerance), tolerance);
330 EXPECT_NEAR(0.093, cubicEaseInTiming->evaluate(0.25, tolerance), tolerance);
331 EXPECT_NEAR(0.305, cubicEaseInTiming->evaluate(0.50, tolerance), toleranc
[all...]
/external/chromium_org/third_party/skia/src/effects/
H A DSkAvoidXfermode.cpp14 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { argument
15 if (tolerance > 255) {
16 tolerance = 255;
18 fTolerance = SkToU8(tolerance);
20 fDistMul = (256 << 14) / (tolerance + 1);
34 const unsigned tolerance = buffer.readUInt(); local
36 return Create(color, tolerance, (Mode)mode);
/external/chromium_org/third_party/webrtc/modules/audio_coding/main/test/
H A Ddual_stream_unittest.cc52 void Validate(bool start_in_sync, int tolerance);
177 int tolerance = 0; local
180 tolerance = 12;
210 Validate(start_in_sync, tolerance);
276 void DualStreamTest::Validate(bool start_in_sync, int tolerance) { argument
278 int my_tolerance = stream_index == kPrimary ? 0 : tolerance;
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dbitmaptools.cc153 int tolerance) {
155 return (abs(pixel1[0] - pixel2[0]) <= tolerance) &&
156 (abs(pixel1[1] - pixel2[1]) <= tolerance) &&
157 (abs(pixel1[2] - pixel2[2]) <= tolerance);
162 bool PixelsEqual(const unsigned char* pixel, int color, int tolerance) { argument
164 return PixelsEqual(pixel, pixel2, tolerance);
171 int tolerance; local
172 if (!(ReadInt(&ignore_color) && ReadInt(&tolerance))) {
184 if (ignore_color >= 0 && PixelsEqual(pixel, ignore_color, tolerance))
200 int tolerance; local
152 PixelsEqual(const unsigned char* pixel1, const unsigned char* pixel2, int tolerance) argument
[all...]
/external/eigen/Eigen/src/IterativeLinearSolvers/
H A DIterativeSolverBase.h119 /** \returns the tolerance threshold used by the stopping criteria */
120 RealScalar tolerance() const { return m_tolerance; } function in class:Eigen::IterativeSolverBase
122 /** Sets the tolerance threshold used by the stopping criteria */
123 Derived& setTolerance(const RealScalar& tolerance) argument
125 m_tolerance = tolerance;
155 /** \returns the tolerance error reached during the last solve */
/external/chromium_org/gpu/command_buffer/tests/
H A Dgl_test_utils.cc130 GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance,
145 if (diff > tolerance) {
129 CheckPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance, const uint8* color) argument
/external/eigen/Eigen/src/Cholesky/
H A DLDLT.h508 // In some previous versions, tolerance was set to the max of 1/highest and the maximal diagonal entry * epsilon
510 // RealScalar tolerance = (max)(vectorD.array().abs().maxCoeff() *NumTraits<RealScalar>::epsilon(),RealScalar(1) / NumTraits<RealScalar>::highest());
511 // However, LDLT is not rank revealing, and so adjusting the tolerance wrt to the highest
513 // Moreover, Lapack's xSYTRS routines use 0 for the tolerance.
514 RealScalar tolerance = RealScalar(1) / NumTraits<RealScalar>::highest(); local
517 if(abs(vectorD(i)) > tolerance)
/external/kernel-headers/original/uapi/linux/
H A Dtimex.h73 __kernel_long_t tolerance;/* clock frequency tolerance (ppm) member in struct:timex
/external/chromium_org/third_party/skia/tests/
H A DMatrix44Test.cpp12 const double tolerance = 1e-7; local
16 return diff <= tolerance;
20 const SkMScalar tolerance = SK_MScalar1 / 200000; local
22 return SkTAbs<SkMScalar>(a - b) <= tolerance;
26 const SkScalar tolerance = SK_Scalar1 / 200000; local
27 return SkScalarAbs(a - b) <= tolerance;
H A DMatrixTest.cpp15 const SkScalar tolerance = SK_Scalar1 / 200000; local
16 return SkScalarAbs(a - b) <= tolerance;
404 SkScalar tolerance = SK_ScalarNearlyZero) {
408 if (diff < tolerance) {
417 if (diff <= largest*tolerance) {
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
H A Daudio_decoder_unittest.cc98 // output is compared vs |tolerance|, and the mean-squared error is compared
102 void EncodeDecodeTest(size_t expected_bytes, int tolerance, double mse, argument
104 ASSERT_GE(tolerance, 0) << "Test must define a tolerance >= 0";
129 CompareInputOutput(processed_samples, tolerance, delay);
136 // compared vs |tolerance|. The parameter |delay| is used to correct for codec
138 virtual void CompareInputOutput(size_t num_samples, int tolerance, argument
142 ASSERT_NEAR(input_[n], decoded_[channels_ * n + delay], tolerance) <<
151 // |tolerance|.
153 int tolerance) cons
673 int tolerance = 251; local
682 int tolerance = 308; local
691 int tolerance = 0; local
703 int tolerance = 6808; local
714 int tolerance = 3399; local
725 int tolerance = 19757; local
736 int tolerance = 19757; local
747 int tolerance = 11034; local
757 int tolerance = 6176; local
771 int tolerance = 6176; local
782 int tolerance = 6176; local
792 int tolerance = 6176; local
808 int tolerance = 20; local
819 int tolerance = 20; local
[all...]
/external/chromium_org/ui/gfx/
H A Dtransform.cc35 inline bool ApproximatelyZero(SkMScalar x, SkMScalar tolerance) { argument
36 return std::abs(x) <= tolerance;
39 inline bool ApproximatelyOne(SkMScalar x, SkMScalar tolerance) { argument
40 return std::abs(x - SkDoubleToMScalar(1.0)) <= tolerance;
222 SkMScalar tolerance) const {
223 DCHECK_GE(tolerance, 0);
225 ApproximatelyOne(matrix_.get(0, 0), tolerance) &&
226 ApproximatelyZero(matrix_.get(1, 0), tolerance) &&
227 ApproximatelyZero(matrix_.get(2, 0), tolerance) &&
229 ApproximatelyZero(matrix_.get(0, 1), tolerance)
[all...]
/external/skia/tests/
H A DMatrix44Test.cpp12 const double tolerance = 1e-7; local
16 return diff <= tolerance;
20 const SkMScalar tolerance = SK_MScalar1 / 200000; local
22 return SkTAbs<SkMScalar>(a - b) <= tolerance;
26 const SkScalar tolerance = SK_Scalar1 / 200000; local
27 return SkScalarAbs(a - b) <= tolerance;
H A DMatrixTest.cpp15 const SkScalar tolerance = SK_Scalar1 / 200000; local
16 return SkScalarAbs(a - b) <= tolerance;
327 // of precision and require that we have a higher tolerance
374 SkScalar tolerance = SK_ScalarNearlyZero) {
378 if (diff < tolerance) {
387 if (diff <= largest*tolerance) {
/external/strace/
H A Dtime.c417 int tolerance; member in struct:__anon31370
441 tprintf("tolerance=%d, time=", tx.tolerance);
473 tprintf("tolerance=%ld, time=", tx.tolerance);
484 tprintf("tolerance=%ld, time=", (long) tx.tolerance);
/external/chromium_org/cc/animation/
H A Dtransform_operations_unittest.cc998 float tolerance) {
999 EXPECT_NEAR(lhs.x(), rhs.x(), tolerance);
1000 EXPECT_NEAR(lhs.y(), rhs.y(), tolerance);
1001 EXPECT_NEAR(lhs.z(), rhs.z(), tolerance);
1002 EXPECT_NEAR(lhs.width(), rhs.width(), tolerance);
1003 EXPECT_NEAR(lhs.height(), rhs.height(), tolerance);
1004 EXPECT_NEAR(lhs.depth(), rhs.depth(), tolerance);
996 ExpectBoxesApproximatelyEqual(const gfx::BoxF& lhs, const gfx::BoxF& rhs, float tolerance) argument

Completed in 572 milliseconds

12