- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for log1p (0.03 sec)
-
android/guava/src/com/google/common/hash/BloomFilter.java
* is close to 1 (why?), gives the following formula. */ double fractionOfBitsSet = (double) bitCount / bitSize; return DoubleMath.roundToLong( -Math.log1p(-fractionOfBitsSet) * bitSize / numHashFunctions, RoundingMode.HALF_UP); } /** Returns the number of bits in the underlying bit array. */ @VisibleForTesting long bitSize() { return bits.bitSize();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 26.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
int j = i & ARRAY_MASK; tmp += BigIntegerMath.log2(positive[j], mode); } return tmp; } @Benchmark int log10(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += BigIntegerMath.log10(positive[j], mode); } return tmp; } @Benchmark int sqrt(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 30 13:06:20 UTC 2020 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
assertEquals(BigIntegerMath.log10(valueOf(x), mode), IntMath.log10(x, mode)); } } } // Relies on the correctness of log10(int, FLOOR) and of pow(int, int). @GwtIncompatible // pow() public void testLog10Exact() { for (int x : POSITIVE_INTEGER_CANDIDATES) { int floor = IntMath.log10(x, FLOOR); boolean expectSuccess = IntMath.pow(10, floor) == x;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 23.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java
int j = i & ARRAY_MASK; tmp += IntMath.log2(positive[j], mode); } return tmp; } @Benchmark int log10(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += IntMath.log10(positive[j], mode); } return tmp; } @Benchmark int sqrt(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
int j = i & ARRAY_MASK; tmp += BigIntegerMath.log2(positive[j], mode); } return tmp; } @Benchmark int log10(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += BigIntegerMath.log10(positive[j], mode); } return tmp; } @Benchmark int sqrt(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 30 13:06:20 UTC 2020 - 2.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/log/JulLoggerAdapter.java
} @Override public void info(final String message, final Throwable t) { logger.logp(Level.INFO, sourceClass, null, message, t); } @Override public boolean isDebugEnabled() { return logger.isLoggable(Level.FINE); } @Override public void debug(final String message) { logger.logp(Level.FINE, sourceClass, null, message);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
@GwtIncompatible // TODO public void testLog10MatchesBigInteger() { for (long x : POSITIVE_LONG_CANDIDATES) { for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) { assertEquals(BigIntegerMath.log10(valueOf(x), mode), LongMath.log10(x, mode)); } } } // Relies on the correctness of log10(long, FLOOR) and of pow(long, int). @GwtIncompatible // TODO
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 30.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/IntMathTest.java
assertEquals(BigIntegerMath.log10(valueOf(x), mode), IntMath.log10(x, mode)); } } } // Relies on the correctness of log10(int, FLOOR) and of pow(int, int). @GwtIncompatible // pow() public void testLog10Exact() { for (int x : POSITIVE_INTEGER_CANDIDATES) { int floor = IntMath.log10(x, FLOOR); boolean expectSuccess = IntMath.pow(10, floor) == x;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 23.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java
.missing(0.1f).modifier(FieldValueFactorFunction.Modifier.LOG2P).setWeight(1.0F))); flist.add(new FunctionScoreQueryBuilder.FilterFunctionBuilder(ScoreFunctionBuilders.fieldValueFactorFunction(FieldNames.QUERY_FREQ) .missing(0.1f).modifier(FieldValueFactorFunction.Modifier.LOG2P).setWeight(1.0F))); flist.add(new FunctionScoreQueryBuilder.FilterFunctionBuilder(
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 13.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java
int j = i & ARRAY_MASK; tmp += LongMath.log2(positive[j], mode); } return tmp; } @Benchmark int log10(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += LongMath.log10(positive[j], mode); } return tmp; } @Benchmark int sqrt(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0)