/external/skia/tests/ |
H A D | ColorMatrixTest.cpp | 19 SkColor expected, SkColor actual, int tolerance) { 20 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); 21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); 22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetG(expected) - SkColorGetG(actual))) <= tolerance); 23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetB(expected) - SkColorGetB(actual))) <= tolerance); 18 assert_color(skiatest::Reporter* reporter, SkColor expected, SkColor actual, int tolerance) argument
|
H A D | ColorSpaceXformTest.cpp | 161 // so we give test_identity_xform_A2B a wide tolerance. 163 const int tolerance = 13; local 166 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance); 253 // See ColorSpaceXform_TableGamma... we've decided to allow some tolerance 255 const int tolerance = 12; local 264 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance);
|
H A D | EncodeTest.cpp | 97 static inline bool almost_equals(SkPMColor a, SkPMColor b, int tolerance) { argument 98 if (SkTAbs((int)SkGetPackedR32(a) - (int)SkGetPackedR32(b)) > tolerance) { 102 if (SkTAbs((int)SkGetPackedG32(a) - (int)SkGetPackedG32(b)) > tolerance) { 106 if (SkTAbs((int)SkGetPackedB32(a) - (int)SkGetPackedB32(b)) > tolerance) { 110 if (SkTAbs((int)SkGetPackedA32(a) - (int)SkGetPackedA32(b)) > tolerance) { 117 static inline bool almost_equals(const SkBitmap& a, const SkBitmap& b, int tolerance) { argument 125 if (!almost_equals(*a.getAddr32(x, y), *b.getAddr32(x, y), tolerance)) {
|
/external/skqp/tests/ |
H A D | ColorMatrixTest.cpp | 19 SkColor expected, SkColor actual, int tolerance) { 20 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); 21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); 22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetG(expected) - SkColorGetG(actual))) <= tolerance); 23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetB(expected) - SkColorGetB(actual))) <= tolerance); 18 assert_color(skiatest::Reporter* reporter, SkColor expected, SkColor actual, int tolerance) argument
|
H A D | ColorSpaceXformTest.cpp | 161 // so we give test_identity_xform_A2B a wide tolerance. 163 const int tolerance = 13; local 166 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance); 253 // See ColorSpaceXform_TableGamma... we've decided to allow some tolerance 255 const int tolerance = 12; local 264 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance);
|
H A D | EncodeTest.cpp | 96 static inline bool almost_equals(SkPMColor a, SkPMColor b, int tolerance) { argument 97 if (SkTAbs((int)SkGetPackedR32(a) - (int)SkGetPackedR32(b)) > tolerance) { 101 if (SkTAbs((int)SkGetPackedG32(a) - (int)SkGetPackedG32(b)) > tolerance) { 105 if (SkTAbs((int)SkGetPackedB32(a) - (int)SkGetPackedB32(b)) > tolerance) { 109 if (SkTAbs((int)SkGetPackedA32(a) - (int)SkGetPackedA32(b)) > tolerance) { 116 static inline bool almost_equals(const SkBitmap& a, const SkBitmap& b, int tolerance) { argument 124 if (!almost_equals(*a.getAddr32(x, y), *b.getAddr32(x, y), tolerance)) {
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
H A D | matrix_test_helpers.h | 81 float tolerance) { 91 tolerance); 94 tolerance); 78 ValidateMatrixNearEqualityComplexFloat( const Matrix<complex<float> >& expected, const Matrix<complex<float> >& actual, float tolerance) argument
|
/external/eigen/Eigen/src/SparseCore/ |
H A D | SparseSparseProductWithPruning.h | 20 static void sparse_sparse_product_with_pruning_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res, const typename ResultType::RealScalar& tolerance) argument 73 for (typename AmbiVector<Scalar,StorageIndex>::Iterator it(tempVector,tolerance); it; ++it) 91 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument 94 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,ResultType>(lhs, rhs, _res, tolerance); 103 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument 108 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,SparseTemporaryType>(lhs, rhs, _res, tolerance); 117 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument 121 internal::sparse_sparse_product_with_pruning_impl<Rhs,Lhs,ResultType>(rhs, lhs, _res, tolerance); 130 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument 136 internal::sparse_sparse_product_with_pruning_impl<ColMajorMatrixLhs,ColMajorMatrixRhs,ResultType>(colLhs, colRhs, res, tolerance); 150 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument 162 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument 174 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument 186 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument [all...] |
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
H A D | DoubleMath.java | 112 * Returns {@code true} if {@code a} and {@code b} are within {@code tolerance} of each other. 115 * {@code Math.abs(a - b) <= tolerance || Double.valueOf(a).equals(Double.valueOf(b))}. 122 * <li>If {@code tolerance} is zero, and neither {@code a} nor {@code b} is NaN, then 124 * <li>With {@link Double#POSITIVE_INFINITY} tolerance, all non-NaN values are fuzzily equal. 125 * <li>With finite tolerance, {@code Double.POSITIVE_INFINITY} and {@code 133 * @throws IllegalArgumentException if {@code tolerance} is {@code < 0} or NaN 136 public static boolean fuzzyEquals(double a, double b, double tolerance) { argument 137 MathPreconditions.checkNonNegative("tolerance", tolerance); 139 Math.copySign(a - b, 1.0) <= tolerance 159 fuzzyCompare(double a, double b, double tolerance) argument [all...] |
/external/tensorflow/tensorflow/compiler/jit/kernels/ |
H A D | parallel_check_op.cc | 60 float tolerance = local 64 ok = (diff <= tolerance);
|
/external/tensorflow/tensorflow/core/kernels/ |
H A D | range_sampler_test.cc | 41 void CheckHistogram(int num_samples, float tolerance) { argument 57 tolerance);
|
H A D | spectrogram_test.cc | 160 double tolerance) { 165 ASSERT_NEAR(real(expected[i][j]), real(actual[i][j]), tolerance) 167 ASSERT_NEAR(imag(expected[i][j]), imag(actual[i][j]), tolerance) 192 double tolerance) { 199 actual_squared_magnitude[i][j], tolerance) 157 CompareComplexData( const std::vector<std::vector<complex<ExpectedSample>>>& expected, const std::vector<std::vector<complex<ActualSample>>>& actual, double tolerance) argument 188 CompareMagnitudeData( const std::vector<std::vector<complex<ExpectedSample>>>& expected_complex_output, const std::vector<std::vector<ActualSample>>& actual_squared_magnitude, double tolerance) argument
|
H A D | cwise_ops_gpu_common.cu.h | 111 typename TTypes<T>::ConstFlat y, T tolerance, 114 z.device(d) = diff.abs() <= tolerance; 110 operator ()(const GPUDevice& d, typename TTypes<T>::ConstFlat x, typename TTypes<T>::ConstFlat y, T tolerance, typename TTypes<bool>::Flat z) argument
|
H A D | quantized_add_op_test.cc | 43 const std::vector<float>& expected_values, double tolerance) { 84 test::ExpectTensorNear<float>(expected_z_float, z_float, tolerance); 38 TestAdd(const std::vector<int64>& x_shape, const std::vector<float>& x_values, float x_min_value, float x_max_value, const std::vector<int64>& y_shape, const std::vector<float>& y_values, float y_min_value, float y_max_value, const std::vector<int64>& expected_shape, const std::vector<float>& expected_values, double tolerance) argument
|
H A D | quantized_mul_op_test.cc | 43 const std::vector<float>& expected_values, double tolerance) { 84 test::ExpectTensorNear<float>(expected_z_float, z_float, tolerance); 38 TestMul(const std::vector<int64>& x_shape, const std::vector<float>& x_values, float x_min_value, float x_max_value, const std::vector<int64>& y_shape, const std::vector<float>& y_values, float y_min_value, float y_max_value, const std::vector<int64>& expected_shape, const std::vector<float>& expected_values, double tolerance) argument
|
/external/guava/guava/src/com/google/common/math/ |
H A D | DoubleMath.java | 327 * Returns {@code true} if {@code a} and {@code b} are within {@code tolerance} of each other. 330 * {@code Math.abs(a - b) <= tolerance || Double.valueOf(a).equals(Double.valueOf(b))}. 337 * <li>If {@code tolerance} is zero, and neither {@code a} nor {@code b} is NaN, then 339 * <li>With {@link Double#POSITIVE_INFINITY} tolerance, all non-NaN values are fuzzily equal. 340 * <li>With finite tolerance, {@code Double.POSITIVE_INFINITY} and {@code 348 * @throws IllegalArgumentException if {@code tolerance} is {@code < 0} or NaN 351 public static boolean fuzzyEquals(double a, double b, double tolerance) { argument 352 MathPreconditions.checkNonNegative("tolerance", tolerance); 354 Math.copySign(a - b, 1.0) <= tolerance 374 fuzzyCompare(double a, double b, double tolerance) argument [all...] |
/external/protobuf/src/google/protobuf/util/ |
H A D | field_comparator.cc | 184 Tolerance* tolerance = FindOrNull(map_tolerance_, &field); local 185 if (tolerance == NULL && has_default_tolerance_) { 186 tolerance = &default_tolerance_; 188 if (tolerance == NULL) { 195 value_1, value_2, static_cast<T>(tolerance->fraction), 196 static_cast<T>(tolerance->margin));
|
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/ |
H A D | grow_stats_test.cc | 381 float tolerance = 3.5; local 384 EXPECT_LE(diff, tolerance); 385 EXPECT_GE(diff, -tolerance);
|
/external/skia/src/core/ |
H A D | SkRRect.cpp | 260 bool SkRRectPriv::AllCornersCircular(const SkRRect& rr, SkScalar tolerance) { argument 261 return SkScalarNearlyEqual(rr.fRadii[0].fX, rr.fRadii[0].fY, tolerance) && 262 SkScalarNearlyEqual(rr.fRadii[1].fX, rr.fRadii[1].fY, tolerance) && 263 SkScalarNearlyEqual(rr.fRadii[2].fX, rr.fRadii[2].fY, tolerance) && 264 SkScalarNearlyEqual(rr.fRadii[3].fX, rr.fRadii[3].fY, tolerance);
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
H A D | audio_decoder_unittest.cc | 43 // compared vs |tolerance|. The parameter |delay| is used to correct for codec 49 int tolerance, 54 ASSERT_NEAR(input[n], output[channels * n + delay], tolerance) 63 // compared vs |tolerance|. 67 int tolerance) { 71 ASSERT_NEAR(output[channels * n], output[channels * n + 1], tolerance) 172 // output is compared vs |tolerance|, and the mean-squared error is compared 176 void EncodeDecodeTest(size_t expected_bytes, int tolerance, double mse, argument 178 ASSERT_GE(tolerance, 0) << "Test must define a tolerance > 45 CompareInputOutput(const std::vector<int16_t>& input, const std::vector<int16_t>& output, size_t num_samples, size_t channels, int tolerance, int delay) argument 64 CompareTwoChannels(const std::vector<int16_t>& output, size_t samples_per_channel, size_t channels, int tolerance) argument 479 int tolerance = 251; local 505 int tolerance = 308; local 517 int tolerance = 0; local 530 int tolerance = 6808; local 544 int tolerance = 3399; local 557 int tolerance = 19757; local 570 int tolerance = 11034; local 590 int tolerance = 6176; local 603 int tolerance = 6176; local 617 int tolerance = 6176; local 640 int tolerance = 6176; local [all...] |
/external/eigen/Eigen/src/IterativeLinearSolvers/ |
H A D | IterativeSolverBase.h | 255 /** \returns the tolerance threshold used by the stopping criteria. 258 RealScalar tolerance() const { return m_tolerance; } function in class:Eigen::IterativeSolverBase 260 /** Sets the tolerance threshold used by the stopping criteria. 265 Derived& setTolerance(const RealScalar& tolerance) argument 267 m_tolerance = tolerance; 302 /** \returns the tolerance error reached during the last solve.
|
/external/kernel-headers/original/uapi/linux/ |
H A D | timex.h | 73 __kernel_long_t tolerance;/* clock frequency tolerance (ppm) member in struct:timex
|
/external/skia/src/pdf/ |
H A D | SkPDFUtils.cpp | 122 SkScalar tolerance) { 177 const SkPoint* quads = converter.computeQuads(args, iter.conicWeight(), tolerance); 120 EmitPath(const SkPath& path, SkPaint::Style paintStyle, bool doConsumeDegerates, SkWStream* content, SkScalar tolerance) argument
|
/external/skqp/src/pdf/ |
H A D | SkPDFUtils.cpp | 122 SkScalar tolerance) { 177 const SkPoint* quads = converter.computeQuads(args, iter.conicWeight(), tolerance); 120 EmitPath(const SkPath& path, SkPaint::Style paintStyle, bool doConsumeDegerates, SkWStream* content, SkScalar tolerance) argument
|
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/ |
H A D | utils.h | 35 // A very small number, generally used as the tolerance for accumulated 148 inline bool NearlyEqual(const float a, const float b, const float tolerance) { argument 149 return std::abs(a - b) < tolerance;
|