/external/chromium_org/cc/animation/ |
timing_function_unittest.cc | 16 double epsilon = 0.00015; local 18 EXPECT_NEAR(function->GetValue(0), 0, epsilon); 19 EXPECT_NEAR(function->GetValue(0.05), 0.01136, epsilon); 20 EXPECT_NEAR(function->GetValue(0.1), 0.03978, epsilon); 21 EXPECT_NEAR(function->GetValue(0.15), 0.079780, epsilon); 22 EXPECT_NEAR(function->GetValue(0.2), 0.12803, epsilon); 23 EXPECT_NEAR(function->GetValue(0.25), 0.18235, epsilon); 24 EXPECT_NEAR(function->GetValue(0.3), 0.24115, epsilon); 25 EXPECT_NEAR(function->GetValue(0.35), 0.30323, epsilon); 26 EXPECT_NEAR(function->GetValue(0.4), 0.36761, epsilon); 45 double epsilon = 0.00015; local [all...] |
/external/stlport/test/unit/ |
math_aux.h | 21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon(); 24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
|
/ndk/tests/device/test-gnustl-full/unit/ |
math_aux.h | 21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon(); 24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
|
/ndk/tests/device/test-stlport/unit/ |
math_aux.h | 21 return (ref - val) <= __STD numeric_limits<_Tp>::epsilon(); 24 return (val - ref) <= __STD numeric_limits<_Tp>::epsilon();
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/ |
epsilon.pass.cpp | 12 // 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);
|
/art/test/053-wait-some/src/ |
Main.java | 60 long epsilon = delay / 10; local 61 if (epsilon > 50) { 62 epsilon = 50; 65 long min = delay - epsilon; 66 long max = delay + epsilon;
|
/dalvik/tests/053-wait-some/src/ |
Main.java | 46 long epsilon = delay / 10; local 47 if (epsilon > 50) { 48 epsilon = 50; 51 long min = delay - epsilon; 52 long max = delay + epsilon;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/ |
UnitBezier.h | 64 double solveCurveX(double x, double epsilon) 79 if (fabs (x2) < epsilon) 94 if (fabs(x2 - x) < epsilon) 107 // Evaluates y at the given x. The epsilon parameter provides a hint as to the required 109 double solve(double x, double epsilon) 115 return sampleCurveY(solveCurveX(x, epsilon));
|
FloatSize.cpp | 55 return fabs(m_width) < numeric_limits<float>::epsilon() && fabs(m_height) < numeric_limits<float>::epsilon();
|
/external/replicaisland/src/com/replica/replicaisland/ |
Utils.java | 21 private static final float EPSILON = 0.0001f; 24 return close(a, b, EPSILON); 27 public final static boolean close(float a, float b, float epsilon) { 28 return Math.abs(a - b) < epsilon;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
SoftLandingInterpolator.java | 42 final float epsilon = Math.min(mI / 2f, (1f - mI) / 2f); local 43 bottom = mI - epsilon; 44 top = mI + epsilon;
|
/external/chromium_org/third_party/skia/src/pathops/ |
SkPathOpsTypes.cpp | 14 static bool equal_ulps(float a, float b, int epsilon) { 25 return ulpsDiff <= epsilon; 28 static bool less_ulps(float a, float b, int epsilon) { 32 // Check different signs with float epsilon since we only care if they're both close to 0. 34 return a <= b + FLT_EPSILON * epsilon; 37 return floatIntA.fSignBitInt <= floatIntB.fSignBitInt + epsilon;
|
/external/eigen/test/eigen2/ |
eigen2_prec_inverse_4x4.cpp | 24 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/skia/src/pathops/ |
SkPathOpsTypes.cpp | 14 static bool equal_ulps(float a, float b, int epsilon) { 25 return ulpsDiff <= epsilon; 28 static bool less_ulps(float a, float b, int epsilon) { 32 // Check different signs with float epsilon since we only care if they're both close to 0. 34 return a <= b + FLT_EPSILON * epsilon; 37 return floatIntA.fSignBitInt <= floatIntB.fSignBitInt + epsilon;
|
/external/eigen/Eigen/src/Geometry/ |
EulerAngles.h | 40 const Scalar epsilon = NumTraits<Scalar>::dummy_precision(); local 51 if (s > epsilon) 66 if (c > epsilon)
|
/external/eigen/test/ |
prec_inverse_4x4.cpp | 23 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/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
chkder.h | 21 const Scalar eps = sqrt(NumTraits<Scalar>::epsilon()); 22 const Scalar epsf = chkder_factor * NumTraits<Scalar>::epsilon(); 52 if (temp > NumTraits<Scalar>::epsilon() && temp < eps)
|
LevenbergMarquardt.h | 58 , ftol(internal::sqrt(NumTraits<Scalar>::epsilon())) 59 , xtol(internal::sqrt(NumTraits<Scalar>::epsilon())) 75 const Scalar tol = internal::sqrt(NumTraits<Scalar>::epsilon()) 86 const Scalar tol = internal::sqrt(NumTraits<Scalar>::epsilon()) 91 const Scalar tol = internal::sqrt(NumTraits<Scalar>::epsilon()) 339 if (internal::abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scalar(.5) * ratio <= 1.) 341 if (delta <= NumTraits<Scalar>::epsilon() * xnorm) 343 if (gnorm <= NumTraits<Scalar>::epsilon()) 586 if (internal::abs(actred) <= NumTraits<Scalar>::epsilon() && prered <= NumTraits<Scalar>::epsilon() && Scalar(.5) * ratio <= 1. [all...] |
/external/eigen/Eigen/src/Core/ |
NumTraits.h | 45 * \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(); }
|
/external/libvorbis/lib/ |
lpc.c | 65 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/ |
frame_counter.cc | 31 if (fabs(elapsed_time) > std::numeric_limits<double>::epsilon()) {
|
vector2.h | 42 if (fabs(mag) < std::numeric_limits<double>::epsilon())
|
/external/chromium_org/media/audio/ |
simple_sources_unittest.cc | 37 std::numeric_limits<float>::epsilon()); 43 std::numeric_limits<float>::epsilon());
|
/external/chromium_org/ui/gfx/ |
matrix3_f.cc | 104 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;
|
skbitmap_operations.cc | 274 // Epsilon used to judge when shift values are close enough to various critical 277 const double epsilon = 0.0005; member in namespace:__anon16755::HSLShift 296 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 297 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); 309 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 310 DCHECK(hsl_shift.l <= 0.5 - HSLShift::epsilon && hsl_shift.l >= 0); 333 DCHECK(hsl_shift.s < 0 || fabs(hsl_shift.s - 0.5) < HSLShift::epsilon); 334 DCHECK(hsl_shift.l >= 0.5 + HSLShift::epsilon && hsl_shift.l <= 1); 378 DCHECK(hsl_shift.s >= 0 && hsl_shift.s <= 0.5 - HSLShift::epsilon); 379 DCHECK(hsl_shift.l < 0 || fabs(hsl_shift.l - 0.5) < HSLShift::epsilon); [all...] |