Searched refs:epsilon (Results 1 - 25 of 241) sorted by relevance

12345678910

/external/opencv3/modules/core/misc/java/src/java/
H A Dcore+TermCriteria.java21 public double epsilon; field in class:TermCriteria
30 * @param epsilon
33 public TermCriteria(int type, int maxCount, double epsilon) { argument
36 this.epsilon = epsilon;
54 epsilon = vals.length > 2 ? (double) vals[2] : 0;
58 epsilon = 0;
63 return new TermCriteria(type, maxCount, epsilon);
75 temp = Double.doubleToLongBits(epsilon);
85 return type == it.type && maxCount == it.maxCount && epsilon
[all...]
/external/opencv3/3rdparty/openexr/Imath/
H A DImathLimits.h78 // epsilon() smallest possible e of type T, for which
122 static T epsilon();
138 static char epsilon() {return 1;} function in struct:Imath::limits
149 static signed char epsilon() {return 1;} function in struct:Imath::limits
160 static unsigned char epsilon() {return 1;} function in struct:Imath::limits
171 static short epsilon() {return 1;} function in struct:Imath::limits
182 static unsigned short epsilon() {return 1;} function in struct:Imath::limits
193 static int epsilon() {return 1;} function in struct:Imath::limits
204 static unsigned int epsilon() {return 1;} function in struct:Imath::limits
215 static long epsilon() {retur function in struct:Imath::limits
226 static unsigned long epsilon() {return 1;} function in struct:Imath::limits
237 static float epsilon() {return FLT_EPSILON;} function in struct:Imath::limits
248 static double epsilon() {return DBL_EPSILON;} function in struct:Imath::limits
259 static long double epsilon() {return LDBL_EPSILON;} function in struct:Imath::limits
[all...]
H A DImathHalfLimits.h58 static float epsilon() {return HALF_EPSILON;} function in struct:Imath::limits
/external/vulkan-validation-layers/libs/glm/gtc/
H A Depsilon.hpp24 /// @file glm/gtc/epsilon.hpp
35 /// @brief Comparison functions for a user defined epsilon values.
37 /// <glm/gtc/epsilon.hpp> need to be included to use these functionalities.
56 /// Returns the component-wise comparison of |x - y| < epsilon.
64 T const & epsilon);
66 /// Returns the component-wise comparison of |x - y| < epsilon.
74 genType const & epsilon);
76 /// Returns the component-wise comparison of |x - y| < epsilon.
84 typename genType::value_type const & epsilon);
86 /// Returns the component-wise comparison of |x - y| >= epsilon
[all...]
/external/vulkan-validation-layers/libs/glm/gtx/
H A Dmatrix_query.hpp59 GLM_FUNC_DECL bool isNull(detail::tmat2x2<T, P> const & m, T const & epsilon);
64 GLM_FUNC_DECL bool isNull(detail::tmat3x3<T, P> const & m, T const & epsilon);
69 GLM_FUNC_DECL bool isNull(detail::tmat4x4<T, P> const & m, T const & epsilon);
74 GLM_FUNC_DECL bool isIdentity(matType<T, P> const & m, T const & epsilon);
79 GLM_FUNC_DECL bool isNormalized(detail::tmat2x2<T, P> const & m, T const & epsilon);
84 GLM_FUNC_DECL bool isNormalized(detail::tmat3x3<T, P> const & m, T const & epsilon);
89 GLM_FUNC_DECL bool isNormalized(detail::tmat4x4<T, P> const & m, T const & epsilon);
94 GLM_FUNC_DECL bool isOrthogonal(matType<T, P> const & m, T const & epsilon);
H A Dvector_query.hpp58 GLM_FUNC_DECL bool areCollinear(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
63 GLM_FUNC_DECL bool areOrthogonal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
68 GLM_FUNC_DECL bool isNormalized(vecType<T, P> const & v, T const & epsilon);
73 GLM_FUNC_DECL bool isNull(vecType<T, P> const & v, T const & epsilon);
78 GLM_FUNC_DECL vecType<bool, P> isCompNull(vecType<T, P> const & v, T const & epsilon);
83 GLM_FUNC_DECL bool areOrthonormal(vecType<T, P> const & v0, vecType<T, P> const & v1, T const & epsilon);
/external/skia/src/pathops/
H A DSkPathOpsTypes.cpp11 static bool arguments_denormalized(float a, float b, int epsilon) { argument
12 float denormalizedCheck = FLT_EPSILON * epsilon / 2;
18 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { argument
25 return aBits < bBits + epsilon && bBits < aBits + epsilon;
28 static bool equal_ulps_pin(float a, float b, int epsilon, int depsilon) { argument
38 return aBits < bBits + epsilon && bBits < aBits + epsilon;
41 static bool d_equal_ulps(float a, float b, int epsilon) { argument
45 return aBits < bBits + epsilon
48 not_equal_ulps(float a, float b, int epsilon) argument
58 not_equal_ulps_pin(float a, float b, int epsilon) argument
71 d_not_equal_ulps(float a, float b, int epsilon) argument
78 less_ulps(float a, float b, int epsilon) argument
88 less_or_equal_ulps(float a, float b, int epsilon) argument
[all...]
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/
H A Depsilon.pass.cpp12 // 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);
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
H A DPoissonDistributionImpl.java70 private double epsilon = DEFAULT_EPSILON; field in class:PoissonDistributionImpl
88 * @param epsilon the convergence criteria for cumulative probabilites
92 public PoissonDistributionImpl(double p, double epsilon, int maxIterations) { argument
94 this.epsilon = epsilon;
102 * @param epsilon the convergence criteria for cumulative probabilites
105 public PoissonDistributionImpl(double p, double epsilon) { argument
107 this.epsilon = epsilon;
219 return Gamma.regularizedGammaQ((double) x + 1, mean, epsilon, maxIteration
[all...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/
H A DBeta.java66 * @param epsilon When the absolute value of the nth item in the
67 * series is less than epsilon the approximation ceases
73 double epsilon) throws MathException
75 return regularizedBeta(x, a, b, epsilon, Integer.MAX_VALUE);
110 * @param epsilon When the absolute value of the nth item in the
111 * series is less than epsilon the approximation ceases
118 final double b, double epsilon, int maxIterations) throws MathException
127 ret = 1.0 - regularizedBeta(1.0 - x, b, a, epsilon, maxIterations);
153 FastMath.log(a) - logBeta(a, b, epsilon, maxIterations)) *
154 1.0 / fraction.evaluate(x, epsilon, maxIteration
72 regularizedBeta(double x, double a, double b, double epsilon) argument
117 regularizedBeta(double x, final double a, final double b, double epsilon, int maxIterations) argument
188 logBeta(double a, double b, double epsilon, int maxIterations) argument
[all...]
H A DGamma.java151 * @param epsilon When the absolute value of the nth item in the
152 * series is less than epsilon the approximation ceases
160 double epsilon,
173 ret = 1.0 - regularizedGammaQ(a, x, epsilon, maxIterations);
179 while (FastMath.abs(an/sum) > epsilon && n < maxIterations && sum < Double.POSITIVE_INFINITY) {
228 * @param epsilon When the absolute value of the nth item in the
229 * series is less than epsilon the approximation ceases
237 double epsilon,
250 ret = 1.0 - regularizedGammaP(a, x, epsilon, maxIterations);
266 ret = 1.0 / cf.evaluate(x, epsilon, maxIteration
158 regularizedGammaP(double a, double x, double epsilon, int maxIterations) argument
235 regularizedGammaQ(final double a, double x, double epsilon, int maxIterations) argument
[all...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
H A DSimplexSolver.java39 protected final double epsilon; field in class:SimplexSolver
50 * @param epsilon the amount of error to accept in floating point comparisons
52 public SimplexSolver(final double epsilon) { argument
53 this.epsilon = epsilon;
65 if (MathUtils.compareTo(tableau.getEntry(0, i), minValue, epsilon) < 0) {
86 if (MathUtils.compareTo(entry, 0, epsilon) > 0) {
88 if (MathUtils.equals(ratio, minRatio, epsilon)) {
106 if (MathUtils.equals(tableau.getEntry(row, column), 1, epsilon) &&
165 if (!MathUtils.equals(tableau.getEntry(0, tableau.getRhsOffset()), 0, epsilon)) {
[all...]
/external/libgdx/gdx/src/com/badlogic/gdx/math/
H A DVector.java140 boolean isOnLine (T other, float epsilon); argument
147 boolean isCollinear (T other, float epsilon); argument
155 boolean isCollinearOpposite (T other, float epsilon); argument
165 * @param epsilon a positive small number close to zero */
166 boolean isPerpendicular (T other, float epsilon); argument
174 /** Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing.
176 * @param epsilon
178 boolean epsilonEquals (T other, float epsilon); argument
H A DVector2.java434 public boolean epsilonEquals (Vector2 other, float epsilon) { argument
436 if (Math.abs(other.x - x) > epsilon) return false;
437 if (Math.abs(other.y - y) > epsilon) return false;
441 /** Compares this vector with the other vector, using the supplied epsilon for fuzzy equality testing.
443 public boolean epsilonEquals (float x, float y, float epsilon) { argument
444 if (Math.abs(x - this.x) > epsilon) return false;
445 if (Math.abs(y - this.y) > epsilon) return false;
475 public boolean isOnLine (Vector2 other, float epsilon) { argument
476 return MathUtils.isZero(x * other.y - y * other.x, epsilon);
480 public boolean isCollinear (Vector2 other, float epsilon) { argument
490 isCollinearOpposite(Vector2 other, float epsilon) argument
505 isPerpendicular(Vector2 vector, float epsilon) argument
[all...]
/external/opencv3/modules/core/misc/java/test/
H A DTermCriteriaTest.java41 assertEquals(0.0, tc1.epsilon);
48 assertEquals(0.002, tc2.epsilon);
57 assertEquals(0.0, tc1.epsilon);
66 assertEquals(0.007, tc1.epsilon);
75 assertEquals(EPS, tc2.epsilon);
81 String expected = "{ type: 2, maxCount: 4, epsilon: " + eps + "}";
/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/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/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/eigen/Eigen/src/Core/
H A DNumTraits.h45 * \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(); }
144 static inline RealScalar epsilon() { return NumTraits<RealScalar>::epsilon(); }
/external/eigen/test/
H A Dprec_inverse_4x4.cpp22 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/apache-commons-math/src/main/java/org/apache/commons/math/util/
H A DContinuedFraction.java81 * @param epsilon maximum error allowed.
85 public double evaluate(double x, double epsilon) throws MathException { argument
86 return evaluate(x, epsilon, Integer.MAX_VALUE);
121 * @param epsilon maximum error allowed.
126 public double evaluate(double x, double epsilon, int maxIterations) argument
136 while (n < maxIterations && relativeError > epsilon) {
/external/opencv3/modules/cudaimgproc/src/
H A Dmean_shift.cpp83 criteria.epsilon = 1.f;
85 float eps = (float) std::max(criteria.epsilon, 0.0);
121 criteria.epsilon = 1.f;
123 float eps = (float) std::max(criteria.epsilon, 0.0);
/external/opencv3/modules/core/include/opencv2/core/cuda/
H A Dlimits.hpp113 __device__ __forceinline__ static float epsilon() { return FLT_EPSILON; } function in struct:cv::cuda::device::numeric_limits
121 __device__ __forceinline__ static double epsilon() { return DBL_EPSILON; } function in struct:cv::cuda::device::numeric_limits
/external/opencv3/modules/cudev/include/opencv2/cudev/util/
H A Dlimits.hpp113 __device__ __forceinline__ static float epsilon() { return FLT_EPSILON; } function in struct:cv::cudev::numeric_limits
121 __device__ __forceinline__ static double epsilon() { return DBL_EPSILON; } function in struct:cv::cudev::numeric_limits
/external/opencv3/modules/java/android_test/src/org/opencv/test/
H A DOpenCVTestCase.java223 public static <E extends Number> void assertListEquals(List<E> list1, List<E> list2, double epsilon) { argument
229 assertTrue(Math.abs(list1.get(i).doubleValue() - list2.get(i).doubleValue()) <= epsilon);
232 public static <E extends Number> void assertArrayEquals(E[] ar1, E[] ar2, double epsilon) { argument
238 assertEquals(ar1[i].doubleValue(), ar2[i].doubleValue(), epsilon);
239 //assertTrue(Math.abs(ar1[i].doubleValue() - ar2[i].doubleValue()) <= epsilon);
242 public static void assertArrayEquals(double[] ar1, double[] ar2, double epsilon) { argument
248 assertEquals(ar1[i], ar2[i], epsilon);
249 //assertTrue(Math.abs(ar1[i].doubleValue() - ar2[i].doubleValue()) <= epsilon);
252 public static void assertListMatEquals(List<Mat> list1, List<Mat> list2, double epsilon) { argument
258 assertMatEqual(list1.get(i), list2.get(i), epsilon);
261 assertListPointEquals(List<Point> list1, List<Point> list2, double epsilon) argument
270 assertArrayPointsEquals(Point[] vp1, Point[] vp2, double epsilon) argument
278 assertListPoint3Equals(List<Point3> list1, List<Point3> list2, double epsilon) argument
330 assertListKeyPointEquals(List<KeyPoint> expected, List<KeyPoint> actual, double epsilon) argument
352 assertArrayDMatchEquals(DMatch[] expected, DMatch[] actual, double epsilon) argument
358 assertListDMatchEquals(List<DMatch> expected, List<DMatch> actual, double epsilon) argument
[all...]

Completed in 801 milliseconds

12345678910