Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for StatsAccumulator (0.1 sec)

  1. android/guava/src/com/google/common/math/StatsAccumulator.java

      @SuppressWarnings("Java7ApiChecker")
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public void addAll(DoubleStream values) {
        addAll(values.collect(StatsAccumulator::new, StatsAccumulator::add, StatsAccumulator::addAll));
      }
    
      /**
       * Adds the given values to the dataset. The stream will be completely consumed by this method.
       *
       * @param values a series of values
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      private StatsAccumulator emptyAccumulator;
      private StatsAccumulator emptyAccumulatorByAddAllEmptyIterable;
      private StatsAccumulator emptyAccumulatorByAddAllEmptyStats;
      private StatsAccumulator oneValueAccumulator;
      private StatsAccumulator oneValueAccumulatorByAddAllEmptyStats;
      private StatsAccumulator twoValuesAccumulator;
      private StatsAccumulator twoValuesAccumulatorByAddAllStats;
    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-tests/test/com/google/common/math/StatsAccumulatorTest.java

      private StatsAccumulator emptyAccumulator;
      private StatsAccumulator emptyAccumulatorByAddAllEmptyIterable;
      private StatsAccumulator emptyAccumulatorByAddAllEmptyStats;
      private StatsAccumulator oneValueAccumulator;
      private StatsAccumulator oneValueAccumulatorByAddAllEmptyStats;
      private StatsAccumulator twoValuesAccumulator;
      private StatsAccumulator twoValuesAccumulatorByAddAllStats;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. 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();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/PairedStatsAccumulator.java

      // These fields must satisfy the requirements of PairedStats' constructor as well as those of the
      // stat methods of this class.
      private final StatsAccumulator xStats = new StatsAccumulator();
      private final StatsAccumulator yStats = new StatsAccumulator();
      private double sumOfProductsOfDeltas = 0.0;
    
      /** Adds the given pair of values to the dataset. */
      public void add(double x, double y) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

      // These fields must satisfy the requirements of PairedStats' constructor as well as those of the
      // stat methods of this class.
      private final StatsAccumulator xStats = new StatsAccumulator();
      private final StatsAccumulator yStats = new StatsAccumulator();
      private double sumOfProductsOfDeltas = 0.0;
    
      /** Adds the given pair of values to the dataset. */
      public void add(double x, double y) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/StatsTest.java

        // For datasets of many double values created from an accumulator snapshot, we test many
        // combinations of finite and non-finite values:
        for (ManyValues values : ALL_MANY_VALUES) {
          StatsAccumulator accumulator = new StatsAccumulator();
          accumulator.addAll(values.asIterable());
          double min = accumulator.snapshot().min();
          if (values.hasAnyNaN()) {
            assertWithMessage("min of " + values).that(min).isNaN();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
Back to top