Searched defs:epsilon (Results 1 - 25 of 47) sorted by relevance

12

/external/deqp/framework/delibs/decpp/
H A DdeRandom.cpp91 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 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...]
H A DSimplexTableau.java96 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 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/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/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/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/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/fonttools/Lib/fontTools/misc/
H A DbezierTools.py21 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 DbezierTools.py21 epsilon = 1e-12 variable
263 if abs(a) < epsilon:
264 if abs(b) < epsilon:
294 if abs(a) < epsilon:
/external/libvorbis/lib/
H A Dlpc.c65 double epsilon; local
80 epsilon=1e-9*aut[0]+1e-10;
85 if(error<epsilon){
/external/mesa3d/src/mesa/main/
H A Ddrawpix.c326 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/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/ceres-solver/internal/ceres/
H A Dpolynomial_test.cc93 double epsilon) {
108 ExpectArraysClose(N, real.data(), real_roots, epsilon);
113 ExpectArraysClose(N, imaginary.data(), zeros.data(), epsilon);
90 RunPolynomialTestRealRoots(const double (&real_roots)[N], bool use_real, bool use_imaginary, double epsilon) argument
/external/opencv/cvaux/src/
H A Dcvlevmar.cpp60 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 DFraction.java112 * @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 DBigFraction.java219 * @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/guava/guava-tests/test/com/google/common/hash/
H A DHashTestUtils.java288 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 DSkPathOpsTypes.cpp10 static bool arguments_denormalized(float a, float b, int epsilon) { argument
11 float denormalizedCheck = FLT_EPSILON * epsilon / 2;
17 static bool equal_ulps(float a, float b, int epsilon, int depsilon) { argument
27 return aBits < bBits + epsilon && bBits < aBits + epsilon;
30 static bool d_equal_ulps(float a, float b, int epsilon) { argument
37 return aBits < bBits + epsilon && bBits < aBits + epsilon;
40 static bool not_equal_ulps(float a, float b, int epsilon) { argument
44 if (arguments_denormalized(a, b, epsilon)) {
53 d_not_equal_ulps(float a, float b, int epsilon) argument
63 less_ulps(float a, float b, int epsilon) argument
76 less_or_equal_ulps(float a, float b, int epsilon) argument
[all...]
/external/valgrind/drd/tests/
H A Domp_matinv.c262 /** 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",
H A Dmatinv.c298 /** Compute epsilon for the numeric type elem_t. Epsilon is defined as the
303 static elem_t epsilon() function
344 eps = epsilon();
354 printf("error = %g; epsilon = %g; error / (epsilon * n) = %g\n",
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
H A DOpenMapRealVector.java47 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...]
/external/deqp/modules/glshared/
H A DglsCalibration.cpp62 const float epsilon = 1e-6f; local
78 if (de::abs(ptA.x() - ptB.x()) > epsilon)
126 const float epsilon = 1e-6f; local
144 if (de::abs(ptA.x() - ptB.x()) > epsilon)
/external/bison/lib/
H A Dhash.c515 float epsilon; local
522 is 11 (due to next_prime's algorithm), so an epsilon of 0.1
524 epsilon = 0.1f;
526 if (epsilon < tuning->growth_threshold
527 && tuning->growth_threshold < 1 - epsilon
528 && 1 + epsilon < tuning->growth_factor
530 && tuning->shrink_threshold + epsilon < tuning->shrink_factor
532 && tuning->shrink_threshold + epsilon < tuning->growth_threshold)

Completed in 854 milliseconds

12