Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for accumulate (1.55 sec)

  1. guava/src/com/google/common/math/Stats.java

        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
      }
    
      /**
       * Returns statistics over a dataset containing the given values.
       *
       * @param values a series of values
       */
      public static Stats of(double... values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/StatsAccumulator.java

    /**
     * A mutable object which accumulates double values and tracks some basic statistics over all the
     * values added so far. The values may be added singly or in groups. This class is not thread safe.
     *
     * @author Pete Gillin
     * @author Kevin Bourrillion
     * @since 20.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class StatsAccumulator {
      /** Creates a new accumulator. */
      public StatsAccumulator() {}
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/PairedStatsAccumulator.java

    /**
     * A mutable object which accumulates paired double values (e.g. points on a plane) and tracks some
     * basic statistics over all the values added so far. This class is not thread safe.
     *
     * @author Pete Gillin
     * @since 20.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class PairedStatsAccumulator {
      /** Creates a new accumulator. */
      public PairedStatsAccumulator() {}
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      public void testCountOverflow_doesNotThrow() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.add(ONE_VALUE);
        for (int power = 1; power < Long.SIZE - 1; power++) {
          accumulator.addAll(accumulator.snapshot());
        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
      public void testMean() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Huffman.kt

            accumulatorBitCount -= 8
            sink.writeByte((accumulator shr accumulatorBitCount).toInt())
          }
        }
    
        if (accumulatorBitCount > 0) {
          accumulator = accumulator shl (8 - accumulatorBitCount)
          accumulator = accumulator or (0xffL ushr accumulatorBitCount)
          sink.writeByte(accumulator.toInt())
        }
      }
    
      fun encodedLength(bytes: ByteString): Int {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

        PairedStatsAccumulator accumulator = new PairedStatsAccumulator();
        accumulator.add(ONE_VALUE, OTHER_ONE_VALUE);
        for (int power = 1; power < Long.SIZE - 1; power++) {
          accumulator.addAll(accumulator.snapshot());
        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

              sb.append(iterator.next());
            }
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
       * Only appends delimiter if the accumulated string is non-empty. Note: this isn't a candidate
       * implementation for Joiner since it fails on leading empty components.
       */
      @Benchmark
      int stringBuilderIsEmpty(int reps) {
        int dummy = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/logging/AccumulatingLogger.java

    import java.util.concurrent.atomic.AtomicReference;
    
    import org.apache.maven.api.cli.Logger;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * Early CLI {@link Logger} that simply accumulates log entries until some point a real logger can emit them. This
     * logger is created at start, and it exists while no logging is available yet.
     */
    public class AccumulatingLogger implements Logger {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableTable.java

     * @author Gregory Kick
     * @since 11.0
     */
    @GwtCompatible
    public abstract class ImmutableTable<R, C, V> extends AbstractTable<R, C, V>
        implements Serializable {
    
      /**
       * Returns a {@code Collector} that accumulates elements into an {@code ImmutableTable}. Each
       * input element is mapped to one cell in the returned table, with the rows, columns, and values
       * generated by applying the specified functions.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  10. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Logger.java

         */
        record Entry(@Nonnull Level level, @Nonnull String message, @Nullable Throwable error) {}
    
        /**
         * If this is an accumulating log, it will "drain" this instance. It returns the accumulated log entries, and
         * also "resets" this instance to empty (initial) state.
         */
        @Nonnull
        default List<Entry> drain() {
            return List.of();
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top