Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 528 for double (0.2 sec)

  1. android/guava/src/com/google/common/hash/BloomFilter.java

       * #create(Funnel, int, double)}, or smaller. If it is significantly higher, it is usually the
       * case that too many elements (more than expected) have been put in the {@code BloomFilter},
       * degenerating it.
       *
       * @since 14.0 (since 11.0 as expectedFalsePositiveProbability())
       */
      public double expectedFpp() {
        return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions);
      }
    
    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)
  2. android/guava/src/com/google/common/math/MathPreconditions.java

        if (x.signum() < 0) {
          throw new IllegalArgumentException(role + " (" + x + ") must be >= 0");
        }
        return x;
      }
    
      @CanIgnoreReturnValue
      static double checkNonNegative(String role, double x) {
        if (!(x >= 0)) { // not x < 0, to work with NaN.
          throw new IllegalArgumentException(role + " (" + x + ") must be >= 0");
        }
        return x;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/StatsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.lang.Double.NEGATIVE_INFINITY;
    import static java.lang.Double.NaN;
    import static java.lang.Double.POSITIVE_INFINITY;
    import static java.lang.Math.sqrt;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

              } else {
                diff[k] += 1;
              }
            }
          }
          // measure probability and assert it's within margin of error
          for (int j = 0; j < hashBits; j++) {
            double prob = (double) diff[j] / (double) (diff[j] + same[j]);
            Assert.assertEquals(0.50d, prob, epsilon);
          }
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        Set<Class<?>> primitives = Primitives.allPrimitiveTypes();
        assertThat(primitives)
            .containsExactly(
                boolean.class,
                byte.class,
                char.class,
                double.class,
                float.class,
                int.class,
                long.class,
                short.class,
                void.class);
    
        try {
          primitives.remove(boolean.class);
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 3K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

          // Math.sin is very slow for values outside 4*pi
          // Need to take absolute value to avoid inverting the value.
          for (double i = 0; i < 100; i += 20) {
            v =
                v.add(
                    v.multiply(
                        BigInteger.valueOf(((Double) Math.abs(Math.sin(i) * 10.0)).longValue())));
          }
          return v;
        }
      }
    
      public enum ComparatorType {
        CHEAP {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LongAdder.java

      @Override
      public float floatValue() {
        return (float) sum();
      }
    
      /** Returns the {@link #sum} as a {@code double} after a widening primitive conversion. */
      @Override
      public double doubleValue() {
        return (double) sum();
      }
    
      private void writeObject(ObjectOutputStream s) throws IOException {
        s.defaultWriteObject();
        s.writeLong(sum());
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

        /** WAVE DASH */
        public static final char WAVE_DASH = '\u301C';
    
        /** FULLWIDTH TILDE */
        public static final char FULLWIDTH_TILDE = '\uFF5E';
    
        /** DOUBLE VERTICAL LINE */
        public static final char DOUBLE_VERTICAL_LINE = '\u2016';
    
        /** PARALLEL TO */
        public static final char PARALLEL_TO = '\u2225';
    
        /** MINUS SIGN */
        public static final char MINUS_SIGN = '\u2212';
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/PrimitiveSink.java

      @CanIgnoreReturnValue
      PrimitiveSink putLong(long l);
    
      /** Puts a float into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putFloat(float f);
    
      /** Puts a double into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putDouble(double d);
    
      /** Puts a boolean into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putBoolean(boolean b);
    
      /** Puts a character into this sink. */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertEquals(Float.valueOf(0), ArbitraryInstances.get(float.class));
        assertEquals(Float.valueOf(0), ArbitraryInstances.get(Float.class));
        assertEquals(Double.valueOf(0), ArbitraryInstances.get(double.class));
        assertEquals(Double.valueOf(0), ArbitraryInstances.get(Double.class));
        assertEquals(UnsignedInteger.ZERO, ArbitraryInstances.get(UnsignedInteger.class));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.7K bytes
    - Viewed (0)
Back to top