Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for positive (0.25 sec)

  1. guava-tests/test/com/google/common/math/DoubleMathTest.java

        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          int log2 = DoubleMath.log2(d, FLOOR);
          assertTrue(StrictMath.pow(2.0, log2) <= d);
          assertTrue(StrictMath.pow(2.0, log2 + 1) > d);
        }
      }
    
      @GwtIncompatible // DoubleMath.log2(double, RoundingMode), StrictMath
      public void testRoundLog2Ceiling() {
        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/BloomFilter.java

       * expected insertions, the required false positive probability.
       *
       * <p>See http://en.wikipedia.org/wiki/Bloom_filter#Probability_of_false_positives for the
       * formula.
       *
       * @param n expected insertions (must be positive)
       * @param p false positive rate (must be 0 < p < 1)
       */
      @VisibleForTesting
      static long optimalNumOfBits(long n, double p) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/IntMathTest.java

          }
        }
      }
    
      public void testGCD() {
        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          for (int b : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b)));
          }
        }
      }
    
      public void testGCDZero() {
        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          assertEquals(a, IntMath.gcd(a, 0));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          int log2 = DoubleMath.log2(d, FLOOR);
          assertTrue(StrictMath.pow(2.0, log2) <= d);
          assertTrue(StrictMath.pow(2.0, log2 + 1) > d);
        }
      }
    
      @GwtIncompatible // DoubleMath.log2(double, RoundingMode), StrictMath
      public void testRoundLog2Ceiling() {
        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/Stats.java

       * contains both {@link Double#POSITIVE_INFINITY} and {@link Double#NEGATIVE_INFINITY} then the
       * result is {@link Double#NaN}. If it contains {@link Double#POSITIVE_INFINITY} and finite values
       * only or {@link Double#POSITIVE_INFINITY} only, the result is {@link Double#POSITIVE_INFINITY}.
       * If it contains {@link Double#NEGATIVE_INFINITY} and finite values only or {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/LongMathTest.java

          }
        }
      }
    
      public void testGCDExhaustive() {
        for (long a : POSITIVE_LONG_CANDIDATES) {
          for (long b : POSITIVE_LONG_CANDIDATES) {
            assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(LongMath.gcd(a, b)));
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testGCDZero() {
        for (long a : POSITIVE_LONG_CANDIDATES) {
          assertEquals(a, LongMath.gcd(a, 0));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      public void testCeilingPowerOfTwo() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          BigInteger result = BigIntegerMath.ceilingPowerOfTwo(x);
          assertTrue(BigIntegerMath.isPowerOfTwo(result));
          assertTrue(result.compareTo(x) >= 0);
          assertTrue(result.compareTo(x.add(x)) < 0);
        }
      }
    
      public void testFloorPowerOfTwo() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      public void testCeilingPowerOfTwo() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          BigInteger result = BigIntegerMath.ceilingPowerOfTwo(x);
          assertTrue(BigIntegerMath.isPowerOfTwo(result));
          assertTrue(result.compareTo(x) >= 0);
          assertTrue(result.compareTo(x.add(x)) < 0);
        }
      }
    
      public void testFloorPowerOfTwo() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/DoubleMath.java

       *
       * <p>Special cases:
       *
       * <ul>
       *   <li>If {@code x} is NaN or less than zero, the result is NaN.
       *   <li>If {@code x} is positive infinity, the result is positive infinity.
       *   <li>If {@code x} is positive or negative zero, the result is negative infinity.
       * </ul>
       *
       * <p>The computed result is within 1 ulp of the exact result.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/IntMathTest.java

          }
        }
      }
    
      public void testGCD() {
        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          for (int b : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b)));
          }
        }
      }
    
      public void testGCDZero() {
        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          assertEquals(a, IntMath.gcd(a, 0));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
Back to top