Searched refs:tolerance (Results 1 - 25 of 59) sorted by relevance

123

/external/ceres-solver/internal/ceres/
H A Dtest_util.h47 // |p[i] - q[i]| / max(|p[i]|, |q[i]|) < tolerance
51 double tolerance);
55 // |p[i] / max_norm_p - q[i] / max_norm_q| < tolerance
62 double tolerance);
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/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/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/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/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...]
H A Dbitmap.py97 def IsEqual(self, expected_color, tolerance=0):
98 """Verifies that the color is within a given tolerance of
104 return (r_diff <= tolerance and g_diff <= tolerance
105 and b_diff <= tolerance and a_diff <= tolerance)
107 def AssertIsRGB(self, r, g, b, tolerance=0):
108 assert self.IsEqual(RgbaColor(r, g, b), tolerance)
110 def AssertIsRGBA(self, r, g, b, a, tolerance=0):
111 assert self.IsEqual(RgbaColor(r, g, b, a), tolerance)
[all...]
/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...]
/external/droiddriver/src/com/google/android/droiddriver/helpers/
H A DBaseDroidDriverTest.java216 int tolerance = 1;
218 tolerance = method.getAnnotation(FlakyTest.class).tolerance();
221 for (int runCount = 0; runCount < tolerance; runCount++) {
223 Logs.logfmt(Log.INFO, "Running %s round %d of %d attempts", fName, runCount + 1, tolerance);
235 if (shouldSkipRemainingTests(exception) || runCount >= tolerance - 1) {
/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/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/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/tools/perf_expectations/
H A Dmake_expectations.py90 for subkey in ['improve', 'regress', 'tolerance']:
178 tolerance = value.get('tolerance', DEFAULT_TOLERANCE)
331 regress = int(math.floor(regress - abs(regress*tolerance)))
332 improve = int(math.ceil(improve + abs(improve*tolerance)))
334 regress = regress - abs(regress*tolerance)
335 improve = improve + abs(improve*tolerance)
338 improve = int(math.floor(improve - abs(improve*tolerance)))
339 regress = int(math.ceil(regress + abs(regress*tolerance)))
341 improve = improve - abs(improve*tolerance)
[all...]
/external/chromium_org/gpu/command_buffer/tests/
H A Dgl_test_utils.h45 GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance,
/external/chromium_org/third_party/skia/include/core/
H A DSkScalar.h206 SkScalar tolerance = SK_ScalarNearlyZero) {
207 SkASSERT(tolerance >= 0);
208 return SkScalarAbs(x) <= tolerance;
212 SkScalar tolerance = SK_ScalarNearlyZero) {
213 SkASSERT(tolerance >= 0);
214 return SkScalarAbs(x-y) <= tolerance;
/external/skia/include/core/
H A DSkScalar.h206 SkScalar tolerance = SK_ScalarNearlyZero) {
207 SkASSERT(tolerance >= 0);
208 return SkScalarAbs(x) <= tolerance;
212 SkScalar tolerance = SK_ScalarNearlyZero) {
213 SkASSERT(tolerance >= 0);
214 return SkScalarAbs(x-y) <= tolerance;
/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/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/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/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/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/third_party/skia/src/core/
H A DSkFloat.h64 void assertEquals(float f, int tolerance = 0)
73 SkASSERT(SkAbs32(d) <= tolerance);
/external/chromium_org/third_party/skia/tools/
H A Dtest_gpuveto.py131 tolerance = 0.05
132 tol_range = tolerance * gpuTime
/external/skia/src/core/
H A DSkFloat.h64 void assertEquals(float f, int tolerance = 0)
73 SkASSERT(SkAbs32(d) <= tolerance);
/external/skia/tools/
H A Dtest_gpuveto.py131 tolerance = 0.05
132 tol_range = tolerance * gpuTime

Completed in 1047 milliseconds

123