- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for margin (0.17 sec)
-
android/guava-tests/test/com/google/common/hash/HashTestUtils.java
if ((hash1 & (1 << k)) == (hash2 & (1 << k))) { same[k] += 1; } 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) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
if ((hash1 & (1 << k)) == (hash2 & (1 << k))) { same[k] += 1; } 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 Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 25.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
/* * Written by Doug Lea and Martin Buchholz with assistance from * members of JCP JSR-166 Expert Group and released to the public * domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ /* * Source: * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck-jsr166e/AtomicDoubleArrayTest.java?revision=1.13 * (Modified to adapt to guava coding conventions) */ package com.google.common.util.concurrent;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 10K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
/* * Written by Doug Lea and Martin Buchholz with assistance from * members of JCP JSR-166 Expert Group and released to the public * domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ */ /* * Source: * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck-jsr166e/AtomicDoubleArrayTest.java?revision=1.13 * (Modified to adapt to guava coding conventions) */ package com.google.common.util.concurrent;
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 14.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
import java.util.Arrays; import java.util.HashMap; import java.util.Random; import junit.framework.TestCase; /** * Unit tests for {@link Utf8}. * * @author Jon Perlow * @author Martin Buchholz * @author Clément Roux */ @GwtCompatible(emulated = true) public class Utf8Test extends TestCase { private static final ImmutableList<String> ILL_FORMED_STRINGS; static {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java
// Don't want to have two workers pulling from the queue. return; } else { // Increment the run counter to avoid the ABA problem of a submitter marking the // thread as QUEUED after it already ran and exhausted the queue before returning // from execute(). workerRunCount++; workerRunningState = RUNNING;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 01 21:46:34 GMT 2024 - 10.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Monitor.java
* try { * value = newValue; * } finally { * monitor.leave(); * } * } * } * }</pre> * * @author Justin T. Sampson * @author Martin Buchholz * @since 10.0 */ @J2ktIncompatible @GwtIncompatible @SuppressWarnings("GuardedBy") // TODO(b/35466881): Fix or suppress. @ElementTypesAreNonnullByDefault public final class Monitor {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 18:22:01 GMT 2023 - 38.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
* * <p>This class only provides testing utilities. It is not designed for direct use in production or * for benchmarking. * * @author mike nonemacher * @author Martin Buchholz * @since 11.0 */ @GwtIncompatible @J2ktIncompatible @J2ObjCIncompatible // gc @ElementTypesAreNonnullByDefault public final class GcFinalization { private GcFinalization() {} /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 11.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
import junit.framework.AssertionFailedError; import junit.framework.TestCase; import org.checkerframework.checker.nullness.qual.Nullable; /** * Unit test for {@link FluentIterable}. * * @author Marcin Mikosik */ @GwtCompatible(emulated = true) public class FluentIterableTest extends TestCase { @GwtIncompatible // NullPointerTester public void testNullPointerExceptions() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 06 17:32:08 GMT 2023 - 30.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableTable.java
* and column pair, they will be combined with the specified merging function in encounter order. * * <p>The returned {@code Collector} will throw a {@code NullPointerException} at collection time * if the row, column, value, or merging functions return null on any input. * * @since 33.2.0 (available since 21.0 in guava-jre) */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 17.6K bytes - Viewed (0)