Home
last modified time | relevance | path

Searched refs:maxError (Results 1 – 25 of 37) sorted by relevance

12

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2PolygonBuilderTest.java262 private boolean loopsEqual(S2Loop a, S2Loop b, double maxError) { in loopsEqual() argument
269 if (S2.approxEquals(a.vertex(offset), b.vertex(0), maxError)) { in loopsEqual()
272 if (!S2.approxEquals(a.vertex(i + offset), b.vertex(i), maxError)) { in loopsEqual()
287 private boolean findLoop(S2Loop loop, List<S2Loop> candidates, double maxError) { in findLoop() argument
289 if (loopsEqual(loop, candidates.get(i), maxError)) { in findLoop()
297 List<S2Loop> actual, List<S2Loop> expected, double maxError, String label) { in findMissingLoops() argument
301 if (findLoop(actual.get(i), expected, maxError)) { in findMissingLoops()
409 double maxError = 0.5 * minMerge + maxPerturbation; in testBuilder() local
412 if (findMissingLoops(loops, expected, maxError, "Actual") in testBuilder()
413 | findMissingLoops(expected, loops, maxError, "Expected")) { in testBuilder()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2Cap.java428 boolean approxEquals(S2Cap other, double maxError) { in approxEquals() argument
429 return (axis.aequal(other.axis, maxError) && Math.abs(height - other.height) <= maxError) in approxEquals()
430 || (isEmpty() && other.height <= maxError) in approxEquals()
431 || (other.isEmpty() && height <= maxError) in approxEquals()
432 || (isFull() && other.height >= 2 - maxError) in approxEquals()
433 || (other.isFull() && height >= 2 - maxError); in approxEquals()
DR1Interval.java222 public boolean approxEquals(R1Interval y, double maxError) { in approxEquals() argument
224 return y.getLength() <= maxError; in approxEquals()
227 return getLength() <= maxError; in approxEquals()
229 return Math.abs(y.lo() - lo()) + Math.abs(y.hi() - hi()) <= maxError; in approxEquals()
DS2LatLng.java269 public boolean approxEquals(S2LatLng o, double maxError) { in approxEquals() argument
270 return (Math.abs(latRadians - o.latRadians) < maxError) in approxEquals()
271 && (Math.abs(lngRadians - o.lngRadians) < maxError); in approxEquals()
DS1Interval.java453 public boolean approxEquals(final S1Interval y, double maxError) { in approxEquals() argument
455 return y.getLength() <= maxError; in approxEquals()
458 return getLength() <= maxError; in approxEquals()
461 + Math.abs(Math.IEEEremainder(y.hi() - hi(), 2 * S2.M_PI))) <= maxError; in approxEquals()
DS2.java775 public static boolean approxEquals(S2Point a, S2Point b, double maxError) { in approxEquals() argument
776 return a.angle(b) <= maxError; in approxEquals()
783 public static boolean approxEquals(double a, double b, double maxError) { in approxEquals() argument
784 return Math.abs(a - b) <= maxError; in approxEquals()
/external/OpenCL-CTS/test_conformance/math_brute_force/
Dunary_double.cpp127 float maxError; // max error value. Init to 0. member
162 float maxError = 0.0f; in TestFunc_Double_Double() local
273 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Double_Double()
275 maxError = test_info.tinfo[i].maxError; in TestFunc_Double_Double()
287 vlog("\t%8.2f @ %a", maxError, maxErrorVal); in TestFunc_Double_Double()
500 if (fabsf(err) > tinfo->maxError) in Test()
502 tinfo->maxError = fabsf(err); in Test()
Dunary_float.cpp125 float maxError; // max error value. Init to 0. member
160 float maxError = 0.0f; in TestFunc_Float_Float() local
291 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Float_Float()
293 maxError = test_info.tinfo[i].maxError; in TestFunc_Float_Float()
311 vlog("\t%8.2f @ %a", maxError, maxErrorVal); in TestFunc_Float_Float()
679 if (fabsf(err) > tinfo->maxError) in Test()
681 tinfo->maxError = fabsf(err); in Test()
Dbinary_i_double.cpp135 float maxError; // max error value. Init to 0. member
291 float maxError = 0.0f; in TestFunc_Double_Double_Int() local
418 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Double_Double_Int()
420 maxError = test_info.tinfo[i].maxError; in TestFunc_Double_Double_Int()
433 vlog("\t%8.2f @ {%a, %d}", maxError, maxErrorVal, maxErrorVal2); in TestFunc_Double_Double_Int()
695 if (fabsf(err) > tinfo->maxError) in Test()
697 tinfo->maxError = fabsf(err); in Test()
Dbinary_i_float.cpp133 float maxError; // max error value. Init to 0. member
283 float maxError = 0.0f; in TestFunc_Float_Float_Int() local
411 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Float_Float_Int()
413 maxError = test_info.tinfo[i].maxError; in TestFunc_Float_Float_Int()
426 vlog("\t%8.2f @ {%a, %d}", maxError, maxErrorVal, maxErrorVal2); in TestFunc_Float_Float_Int()
687 if (fabsf(err) > tinfo->maxError) in Test()
689 tinfo->maxError = fabsf(err); in Test()
Dunary_u_double.cpp132 float maxError = 0.0f; in TestFunc_Double_ULong() local
259 if (fabsf(err) > maxError) in TestFunc_Double_ULong()
261 maxError = fabsf(err); in TestFunc_Double_ULong()
300 vlog("\t%8.2f @ %a", maxError, maxErrorVal); in TestFunc_Double_ULong()
Dunary_u_float.cpp124 float maxError = 0.0f; in TestFunc_Float_UInt() local
262 if (fabsf(err) > maxError) in TestFunc_Float_UInt()
264 maxError = fabsf(err); in TestFunc_Float_UInt()
302 vlog("\t%8.2f @ %a", maxError, maxErrorVal); in TestFunc_Float_UInt()
Dbinary_operator_double.cpp135 float maxError; // max error value. Init to 0. member
287 float maxError = 0.0f; in TestFunc_Double_Double_Double_Operator() local
411 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Double_Double_Double_Operator()
413 maxError = test_info.tinfo[i].maxError; in TestFunc_Double_Double_Double_Operator()
426 vlog("\t%8.2f @ {%a, %a}", maxError, maxErrorVal, maxErrorVal2); in TestFunc_Double_Double_Double_Operator()
745 if (fabsf(err) > tinfo->maxError) in Test()
747 tinfo->maxError = fabsf(err); in Test()
Dbinary_double.cpp136 float maxError; // max error value. Init to 0. member
289 float maxError = 0.0f; in TestFunc_Double_Double_Double() local
417 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Double_Double_Double()
419 maxError = test_info.tinfo[i].maxError; in TestFunc_Double_Double_Double()
432 vlog("\t%8.2f @ {%a, %a}", maxError, maxErrorVal, maxErrorVal2); in TestFunc_Double_Double_Double()
776 if (fabsf(err) > tinfo->maxError) in Test()
778 tinfo->maxError = fabsf(err); in Test()
Dbinary_float.cpp134 float maxError; // max error value. Init to 0. member
279 float maxError = 0.0f; in TestFunc_Float_Float_Float() local
408 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Float_Float_Float()
410 maxError = test_info.tinfo[i].maxError; in TestFunc_Float_Float_Float()
423 vlog("\t%8.2f @ {%a, %a}", maxError, maxErrorVal, maxErrorVal2); in TestFunc_Float_Float_Float()
931 if (fabsf(err) > tinfo->maxError) in Test()
933 tinfo->maxError = fabsf(err); in Test()
Dbinary_operator_float.cpp133 float maxError; // max error value. Init to 0. member
277 float maxError = 0.0f; in TestFunc_Float_Float_Float_Operator() local
403 if (test_info.tinfo[i].maxError > maxError) in TestFunc_Float_Float_Float_Operator()
405 maxError = test_info.tinfo[i].maxError; in TestFunc_Float_Float_Float_Operator()
418 vlog("\t%8.2f @ {%a, %a}", maxError, maxErrorVal, maxErrorVal2); in TestFunc_Float_Float_Float_Operator()
873 if (fabsf(err) > tinfo->maxError) in Test()
875 tinfo->maxError = fabsf(err); in Test()
Dunary_two_results_i_float.cpp137 float maxError = 0.0f; in TestFunc_FloatI_Float() local
354 if (fabsf(err) > maxError) in TestFunc_FloatI_Float()
356 maxError = fabsf(err); in TestFunc_FloatI_Float()
401 vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, in TestFunc_FloatI_Float()
Dunary_two_results_i_double.cpp139 float maxError = 0.0f; in TestFunc_DoubleI_Double() local
356 if (fabsf(err) > maxError) in TestFunc_DoubleI_Double()
358 maxError = fabsf(err); in TestFunc_DoubleI_Double()
403 vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, in TestFunc_DoubleI_Double()
Dmad_float.cpp139 float maxError = 0.0f; in TestFunc_mad_Float() local
285 vlog("\t%8.2f @ {%a, %a, %a}", maxError, maxErrorVal, maxErrorVal2, in TestFunc_mad_Float()
Dmad_double.cpp138 float maxError = 0.0f; in TestFunc_mad_Double() local
286 vlog("\t%8.2f @ {%a, %a, %a}", maxError, maxErrorVal, maxErrorVal2, in TestFunc_mad_Double()
Dbinary_two_results_i_float.cpp172 float maxError = 0.0f; in TestFunc_FloatI_Float_Float() local
499 if (fabsf(err) > maxError) in TestFunc_FloatI_Float_Float()
501 maxError = fabsf(err); in TestFunc_FloatI_Float_Float()
550 vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, in TestFunc_FloatI_Float_Float()
Dbinary_two_results_i_double.cpp173 float maxError = 0.0f; in TestFunc_DoubleI_Double_Double() local
513 if (fabsf(err) > maxError) in TestFunc_DoubleI_Double_Double()
515 maxError = fabsf(err); in TestFunc_DoubleI_Double_Double()
565 vlog("\t{%8.2f, %lld} @ {%a, %a}", maxError, maxError2, maxErrorVal, in TestFunc_DoubleI_Double_Double()
/external/walt/ios/WALT/
DWALTClient.m104 int64_t maxError;
248 _sync.maxError = CurrentTime(_clock) - _sync.base;
259 _sync.maxError -= _sync.minError;
267 _sync.maxError = 1e7;
282 - (int64_t)maxError { method
283 return _sync.maxError;
310 uint64_t sleepTime = (_sync.maxError - _sync.minError) / kSleepTimeDivider;
395 // Adjust maxError to be the smallest delta between local and remote
398 if (digitTimes.local[i] != 0 && digitTimes.remote[i] != 0 && delta < _sync.maxError) {
399 _sync.maxError = delta;
/external/skqp/tests/
DFontMgrAndroidParserTest.cpp134 double maxError = 0; in test_parse_fixed_r() local
147 maxError = SkTMax(maxError, error); in test_parse_fixed_r()
154 return maxError; in test_parse_fixed_r()
/external/skia/tests/
DFontMgrAndroidParserTest.cpp133 double maxError = 0; in test_parse_fixed_r() local
146 maxError = std::max(maxError, error); in test_parse_fixed_r()
153 return maxError; in test_parse_fixed_r()

12