Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for mapToInt (0.12 sec)

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

      }
    
      public void testAddAllPrimitiveIntStream() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(megaPrimitiveDoubleStreamPart1().mapToInt(x -> (int) x));
        accumulator.addAll(megaPrimitiveDoubleStreamPart2().mapToInt(x -> (int) x));
        assertThat(accumulator.count()).isEqualTo(MEGA_STREAM_COUNT);
        assertThat(accumulator.mean()).isWithin(ALLOWED_ERROR * MEGA_STREAM_COUNT).of(MEGA_STREAM_MEAN);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      }
    
      public void testAddAllPrimitiveIntStream() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(megaPrimitiveDoubleStreamPart1().mapToInt(x -> (int) x));
        accumulator.addAll(megaPrimitiveDoubleStreamPart2().mapToInt(x -> (int) x));
        assertThat(accumulator.count()).isEqualTo(MEGA_STREAM_COUNT);
        assertThat(accumulator.mean()).isWithin(ALLOWED_ERROR * MEGA_STREAM_COUNT).of(MEGA_STREAM_MEAN);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/ImmutableIntArray.java

     *   <li>Can be queried without allocating garbage.
     *   <li>Access to {@code IntStream} features (like {@link IntStream#sum}) using {@code stream()}
     *       instead of the awkward {@code stream().mapToInt(v -> v)}.
     * </ul>
     *
     * <p>Disadvantages compared to {@code ImmutableList<Integer>}:
     *
     * <ul>
     *   <li>Can't be passed directly to methods that expect {@code Iterable}, {@code Collection}, or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(stats.min()).isEqualTo(MEGA_STREAM_MIN);
        assertThat(stats.max()).isEqualTo(MEGA_STREAM_MAX);
      }
    
      public void testOfPrimitiveIntStream() {
        Stats stats = Stats.of(megaPrimitiveDoubleStream().mapToInt(x -> (int) x));
        assertThat(stats.count()).isEqualTo(MEGA_STREAM_COUNT);
        assertThat(stats.mean()).isWithin(ALLOWED_ERROR * MEGA_STREAM_COUNT).of(MEGA_STREAM_MEAN);
        assertThat(stats.populationVariance())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

     *   <li>Can be queried without allocating garbage.
     *   <li>Access to {@code IntStream} features (like {@link IntStream#sum}) using {@code stream()}
     *       instead of the awkward {@code stream().mapToInt(v -> v)}.
     * </ul>
     *
     * <p>Disadvantages compared to {@code ImmutableList<Integer>}:
     *
     * <ul>
     *   <li>Can't be passed directly to methods that expect {@code Iterable}, {@code Collection}, or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top