Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for singletonSetProportion (0.13 sec)

  1. guava-tests/benchmark/com/google/common/collect/MultipleSetContainsBenchmark.java

      void setUp() {
        if (emptySetProportion + singletonSetProportion > 1.01) {
          throw new SkipThisScenarioException();
        }
    
        Random rng = new Random();
        for (int i = 0; i < 0x1000; i++) {
          double setSize = rng.nextDouble();
          if (setSize < emptySetProportion) {
            sets[i] = ImmutableSet.of();
          } else if (setSize < emptySetProportion + singletonSetProportion) {
            sets[i] = ImmutableSet.of(PRESENT);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top