/external/deqp/framework/delibs/decpp/ |
H A D | deRandom.cpp | 91 const float epsilon = 0.01f; local 94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon); 101 const float epsilon = 0.01f; 104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < epsilon);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/ |
H A D | SimplexSolver.java | 39 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...] |
H A D | SimplexTableau.java | 96 private final double epsilon; field in class:SimplexTableau 105 * @param epsilon amount of error to accept in floating point comparisons 110 final double epsilon) { 114 this.epsilon = epsilon; 288 if (MathUtils.equals(getEntry(i, col), 1.0, epsilon) && (row == null)) { 290 } else if (!MathUtils.equals(getEntry(i, col), 0.0, epsilon)) { 311 if (MathUtils.compareTo(tableau.getEntry(0, i), 0, epsilon) > 0) { 356 if (MathUtils.compareTo(tableau.getEntry(0, i), 0, epsilon) < 0) { 547 (epsilon 107 SimplexTableau(final LinearObjectiveFunction f, final Collection<LinearConstraint> constraints, final GoalType goalType, final boolean restrictToNonNegative, final double epsilon) argument [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/ |
H A D | Beta.java | 66 * @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 D | Gamma.java | 151 * @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/util/ |
H A D | ContinuedFraction.java | 81 * @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/eigen/unsupported/test/ |
H A D | cxx11_tensor_simple.cpp | 159 Tensor<int, 3> epsilon(3,3,3); 160 epsilon.setZero(); 161 epsilon(0,1,2) = epsilon(2,0,1) = epsilon(1,2,0) = 1; 162 epsilon(2,1,0) = epsilon(0,2,1) = epsilon(1,0,2) = -1; 164 VERIFY_IS_EQUAL((epsilon.size()), 27); 165 VERIFY_IS_EQUAL((epsilon 297 Tensor<int, 3> epsilon; local [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
H A D | vktSampleVerifierUtil.hpp | 109 bool isEqualRelEpsilon (const tcu::Vector<float, Size>& a, const tcu::Vector<float, Size>& b, const float epsilon) argument 113 if (!isEqualRelEpsilon(a[compNdx], b[compNdx], epsilon))
|
/external/replicaisland/src/com/replica/replicaisland/ |
H A D | Utils.java | 27 public final static boolean close(float a, float b, float epsilon) { argument 28 return Math.abs(a - b) < epsilon;
|
/external/fonttools/Lib/fontTools/misc/ |
H A D | bezierTools.py | 21 epsilon = 1e-12 variable 263 if abs(a) < epsilon: 264 if abs(b) < epsilon: 294 if abs(a) < epsilon:
|
/external/fonttools/Tools/fontTools/misc/ |
H A D | bezierTools.py | 21 epsilon = 1e-12 variable 263 if abs(a) < epsilon: 264 if abs(b) < epsilon: 294 if abs(a) < epsilon:
|
/external/libvorbis/lib/ |
H A D | lpc.c | 65 double epsilon; local 80 epsilon=1e-9*aut[0]+1e-10; 85 if(error<epsilon){
|
/external/mesa3d/src/mesa/main/ |
H A D | drawpix.c | 326 const GLfloat epsilon = 0.0001F; local 327 GLint x = IFLOOR(ctx->Current.RasterPos[0] + epsilon - xorig); 328 GLint y = IFLOOR(ctx->Current.RasterPos[1] + epsilon - yorig);
|
/external/skia/tests/ |
H A D | FloatingPointTextureTest.cpp | 29 T min, T max, T epsilon, T maxInt, int arraySize, GrPixelConfig config) { 43 controlPixelData[i + 2] = epsilon; 28 runFPTest(skiatest::Reporter* reporter, GrContext* context, T min, T max, T epsilon, T maxInt, int arraySize, GrPixelConfig config) argument
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
H A D | PoissonDistributionImpl.java | 70 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/opencv/cvaux/src/ |
H A D | cvlevmar.cpp | 60 int maxIter,double epsilon) 125 if( epsilon < 0 ) 226 } while ( change > epsilon && currIter < maxIter ); 56 cvLevenbergMarquardtOptimization(pointer_LMJac JacobianFunction, pointer_LMFunc function, CvMat *X0,CvMat *observRes,CvMat *resultX, int maxIter,double epsilon) argument
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
H A D | Fraction.java | 112 * @param epsilon maximum error allowed. The resulting fraction is within 113 * <code>epsilon</code> of <code>value</code>, in absolute terms. 118 public Fraction(double value, double epsilon, int maxIterations) argument 121 this(value, epsilon, Integer.MAX_VALUE, maxIterations); 150 * - a valid epsilon value and the maxDenominator set to Integer.MAX_VALUE 153 * - a valid maxDenominator value and the epsilon value set to zero 154 * (that way epsilon only has effect if there is an exact match before 168 * @param epsilon maximum error allowed. The resulting fraction is within 169 * <code>epsilon</code> of <code>value</code>, in absolute terms. 175 private Fraction(double value, double epsilon, in argument [all...] |
H A D | BigFraction.java | 219 * @param epsilon 221 * <code>epsilon</code> of <code>value</code>, in absolute terms. 228 public BigFraction(final double value, final double epsilon, argument 231 this(value, epsilon, Integer.MAX_VALUE, maxIterations); 239 * NOTE: This constructor is called with EITHER - a valid epsilon value and 241 * has no effect). OR - a valid maxDenominator value and the epsilon value 242 * set to zero (that way epsilon only has effect if there is an exact match 258 * @param epsilon 260 * <code>epsilon</code> of <code>value</code>, in absolute terms. 268 private BigFraction(final double value, final double epsilon, argument [all...] |
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationFractionalSpacingTests.cpp | 165 const float epsilon = 0.001f; local 168 if (de::abs(seg.length - segmentsA[0].length) < epsilon) 170 else if (segmentsB.empty() || de::abs(seg.length - segmentsB[0].length) < epsilon)
|
/external/eigen/Eigen/src/SparseCore/ |
H A D | SparseView.h | 38 * entries smaller than \c reference * \c epsilon are removed. 55 const RealScalar &epsilon = NumTraits<Scalar>::dummy_precision()) 56 : m_matrix(mat), m_reference(reference), m_epsilon(epsilon) {} 69 RealScalar epsilon() const { return m_epsilon; } function in class:Eigen::SparseView 117 while((bool(*this)) && internal::isMuchSmallerThan(value(), m_view.reference(), m_view.epsilon())) 186 while((bool(*this)) && internal::isMuchSmallerThan(value(), m_sve.m_view.reference(), m_sve.m_view.epsilon())) 210 * \a reference * \a epsilon removed. 218 * S = D.sparseView(reference,epsilon); 221 * and \a epsilon is a tolerance factor defaulting to NumTraits<Scalar>::dummy_precision(). 226 const typename NumTraits<Scalar>::Real& epsilon) cons [all...] |
/external/guava/guava-tests/test/com/google/common/hash/ |
H A D | HashTestUtils.java | 288 static void checkAvalanche(HashFunction function, int trials, double epsilon) { argument 314 Assert.assertEquals(0.50d, prob, epsilon); 375 static void check2BitAvalanche(HashFunction function, int trials, double epsilon) { argument 404 Assert.assertEquals(0.50d, prob, epsilon);
|
/external/skia/src/pathops/ |
H A D | SkPathOpsTypes.cpp | 12 static bool arguments_denormalized(float a, float b, int epsilon) { argument 13 float denormalizedCheck = FLT_EPSILON * epsilon / 2; 19 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { argument 26 return aBits < bBits + epsilon && bBits < aBits + epsilon; 29 static bool equal_ulps_no_normal_check(float a, float b, int epsilon, int depsilon) { argument 33 return aBits < bBits + epsilon && bBits < aBits + epsilon; 36 static bool equal_ulps_pin(float a, float b, int epsilon, int depsilon) { argument 46 return aBits < bBits + epsilon 49 d_equal_ulps(float a, float b, int epsilon) argument 56 not_equal_ulps(float a, float b, int epsilon) argument 66 not_equal_ulps_pin(float a, float b, int epsilon) argument 79 d_not_equal_ulps(float a, float b, int epsilon) argument 86 less_ulps(float a, float b, int epsilon) argument 96 less_or_equal_ulps(float a, float b, int epsilon) argument [all...] |
/external/valgrind/drd/tests/ |
H A D | omp_matinv.c | 262 /** Compute epsilon for the numeric type elem_t. Epsilon is defined as the 267 static elem_t epsilon() function 324 eps = epsilon(); 334 printf("error = %g; epsilon = %g; error / (epsilon * n) = %g\n",
|
/external/ImageMagick/MagickCore/ |
H A D | threshold.c | 1469 % PerceptibleImage() set each pixel whose value is less than |epsilon| to 1470 % epsilon or -epsilon (whichever is closer) otherwise the pixel value remains 1475 % MagickBooleanType PerceptibleImage(Image *image,const double epsilon, 1482 % o epsilon: the epsilon threshold (e.g. 1.0e-9). 1489 const double epsilon) 1495 if ((sign*quantum) >= epsilon) 1497 return((Quantum) (sign*epsilon)); 1501 const double epsilon,ExceptionInf 1472 PerceptibleThreshold(const Quantum quantum, const double epsilon) argument 1484 PerceptibleImage(Image *image, const double epsilon,ExceptionInfo *exception) argument [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
H A D | OpenMapRealVector.java | 47 private final double epsilon; field in class:OpenMapRealVector 73 * @param epsilon The tolerance for having a value considered zero 75 public OpenMapRealVector(int dimension, double epsilon) { argument 78 this.epsilon = epsilon; 89 epsilon = v.epsilon; 105 * @param epsilon The tolerance for having a value considered zero 107 public OpenMapRealVector(int dimension, int expectedSize, double epsilon) { argument 110 this.epsilon 128 OpenMapRealVector(double[] values, double epsilon) argument 155 OpenMapRealVector(Double[] values, double epsilon) argument [all...] |