Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for Tolerance (0.15 sec)

  1. internal/dsync/drwmutex.go

    		// quorum + 1 when tolerance is exactly half of the
    		// total locker clients.
    		if quorum == tolerance {
    			quorum++
    		}
    	}
    
    	log("lockBlocking %s/%s for %#v: lockType readLock(%t), additional opts: %#v, quorum: %d, tolerance: %d, lockClients: %d\n", id, source, dm.Names, isReadLock, opts, quorum, tolerance, len(restClnts))
    
    	tolerance = len(restClnts) - quorum
    	attempt := uint(0)
    
    	for {
    		select {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/DoubleMath.java

       * implementations.
       *
       * @throws IllegalArgumentException if {@code tolerance} is {@code < 0} or NaN
       * @since 13.0
       */
      public static boolean fuzzyEquals(double a, double b, double tolerance) {
        MathPreconditions.checkNonNegative("tolerance", tolerance);
        return Math.copySign(a - b, 1.0) <= tolerance
            // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/DoubleMath.java

       * implementations.
       *
       * @throws IllegalArgumentException if {@code tolerance} is {@code < 0} or NaN
       * @since 13.0
       */
      public static boolean fuzzyEquals(double a, double b, double tolerance) {
        MathPreconditions.checkNonNegative("tolerance", tolerance);
        return Math.copySign(a - b, 1.0) <= tolerance
            // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

              assertFalse(DoubleMath.fuzzyEquals(inf, a, tolerance));
            }
          }
        }
      }
    
      public void testFuzzyInfiniteVersusInfiniteWithFiniteTolerance() {
        for (double inf : INFINITIES) {
          for (double tolerance : FINITE_TOLERANCE_CANDIDATES) {
            assertTrue(DoubleMath.fuzzyEquals(inf, inf, tolerance));
            assertFalse(DoubleMath.fuzzyEquals(inf, -inf, tolerance));
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. pkg/controller/podautoscaler/replica_calculator.go

    	podLister                     corelisters.PodLister
    	tolerance                     float64
    	cpuInitializationPeriod       time.Duration
    	delayOfInitialReadinessStatus time.Duration
    }
    
    // NewReplicaCalculator creates a new ReplicaCalculator and passes all necessary information to the new instance
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/check_test.go

    }
    func TestSpec(t *testing.T) { testDirFiles(t, "../../../../internal/types/testdata/spec", 20, false) } // TODO(gri) narrow column tolerance
    func TestExamples(t *testing.T) {
    	testDirFiles(t, "../../../../internal/types/testdata/examples", 125, false)
    } // TODO(gri) narrow column tolerance
    func TestFixedbugs(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. pilot/pkg/leaderelection/k8sleaderelection/leaderelection.go

    // renewed the leader lease. Thus the implementation is tolerant to arbitrary
    // clock skew, but is not tolerant to arbitrary clock skew rate.
    //
    // However the level of tolerance to skew rate can be configured by setting
    // RenewDeadline and LeaseDuration appropriately. The tolerance expressed as a
    // maximum tolerated ratio of time passed on the fastest node to time passed on
    // the slowest node can be approximately achieved with a configuration that sets
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/CUnit.h

    /** Asserts that double actual == expected within the specified tolerance.
     *  If actual is within granularity of expected, the assertion passes.
     *  Reports failure with no other action.
     */
    #define CU_ASSERT_DOUBLE_EQUAL(actual, expected, granularity) \
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/quantize-numeric-verify.mlir

    // DEBUG: %[[f_split:.*]]:2 = "tfl.split"
    // DEBUG: %[[q_split:.*]]:2 = "tfl.split"
    // DEBUG: "tfl.NumericVerify"(%[[q_split]]#1, %[[f_split]]#1) <{log_if_failed = true, tolerance = 5.000000e+00 : f32}>
    // DEBUG: "tfl.NumericVerify"(%[[q_split]]#0, %[[f_split]]#0) <{log_if_failed = true, tolerance = 5.000000e+00 : f32}>
    }
    
    // DEBUG-LABEL: NotQuantizePow
    func.func @NotQuantizePow(%arg0: tensor<4x!quant.uniform<u8:f32, 1.0>>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. src/image/gif/writer_test.go

    			t.Errorf("%s, bounds differ: %v and %v", tc.filename, m0.Bounds(), m1.Bounds())
    			continue
    		}
    		// Compare the average delta to the tolerance level.
    		avgDelta := averageDelta(m0, m1)
    		if avgDelta > tc.tolerance {
    			t.Errorf("%s: average delta is too high. expected: %d, got %d", tc.filename, tc.tolerance, avgDelta)
    			continue
    		}
    	}
    }
    
    func TestSubImage(t *testing.T) {
    	m0, err := readImg("../testdata/video-001.gif")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top