Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 211 for Mean (0.02 sec)

  1. android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

            for (int i = 1; i < values.length; i++) {
              mean = mean + (values[i] - mean) / (i + 1);
            }
            return mean;
          }
        };
    
        abstract double mean(double[] values);
      }
    
      static class MeanAndVariance {
        private final double mean;
        private final double variance;
    
        MeanAndVariance(double mean, double variance) {
          this.mean = mean;
          this.variance = variance;
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/Stats.java

            mean += (value - mean) / (index + 1);
          } else {
            mean = calculateNewMeanNonFinite(mean, value);
          }
        }
        return mean;
      }
    
      /**
       * Returns the <a href="http://en.wikipedia.org/wiki/Arithmetic_mean">arithmetic mean</a> of the
       * values. The count must be non-zero.
       *
       * <p>The definition of the mean is the same as {@link Stats#mean}.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

            twoValuesAccumulator.xStats().mean(),
            twoValuesAccumulator.yStats().mean(),
            twoValuesAccumulator.xStats().populationVariance(),
            twoValuesAccumulator.populationCovariance());
        assertDiagonalLinearTransformation(
            twoValuesAccumulatorByAddAllPartitionedPairedStats.leastSquaresFit(),
            twoValuesAccumulatorByAddAllPartitionedPairedStats.xStats().mean(),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/StatsAccumulator.java

          }
        } else {
          count++;
          if (isFinite(value) && isFinite(mean)) {
            // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15) and (16)
            double delta = value - mean;
            mean += delta / count;
            sumOfSquaresOfDeltas += delta * (value - mean);
          } else {
            mean = calculateNewMeanNonFinite(mean, value);
            sumOfSquaresOfDeltas = NaN;
          }
          min = Math.min(min, value);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

            accumulatorByAddAllStats.addAll(Stats.of(value));
          }
          double mean = accumulator.mean();
          double meanByAddAllStats = accumulatorByAddAllStats.mean();
          if (values.hasAnyNaN()) {
            assertWithMessage("mean of %s", values).that(mean).isNaN();
            assertWithMessage("mean by addAll(Stats) of %s", values).that(meanByAddAllStats).isNaN();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 36.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/DoubleMathTest.java

      }
    
      @GwtIncompatible // DoubleMath.mean
      @SuppressWarnings("deprecation") // test of deprecated method
      public void testMean_intVarargs() {
        assertThat(DoubleMath.mean(11, -22, 44, -88)).isWithin(1.0e-10).of(-13.75);
        assertThat(DoubleMath.mean(11)).isWithin(1.0e-10).of(11.0);
      }
    
      @GwtIncompatible // DoubleMath.mean
      @SuppressWarnings("deprecation") // test of deprecated method
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 14:15:36 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

            twoValuesAccumulator.xStats().mean(),
            twoValuesAccumulator.yStats().mean(),
            twoValuesAccumulator.xStats().populationVariance(),
            twoValuesAccumulator.populationCovariance());
        assertDiagonalLinearTransformation(
            twoValuesAccumulatorByAddAllPartitionedPairedStats.leastSquaresFit(),
            twoValuesAccumulatorByAddAllPartitionedPairedStats.xStats().mean(),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      }
    
      @GwtIncompatible // DoubleMath.mean
      @SuppressWarnings("deprecation") // test of deprecated method
      public void testMean_intVarargs() {
        assertThat(DoubleMath.mean(11, -22, 44, -88)).isWithin(1.0e-10).of(-13.75);
        assertThat(DoubleMath.mean(11)).isWithin(1.0e-10).of(11.0);
      }
    
      @GwtIncompatible // DoubleMath.mean
      @SuppressWarnings("deprecation") // test of deprecated method
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 14:15:36 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/PairedStatsAccumulator.java

          // in NaN naturally.
          sumOfProductsOfDeltas +=
              values.sumOfProductsOfDeltas()
                  + (values.xStats().mean() - xStats.mean())
                      * (values.yStats().mean() - yStats.mean())
                      * values.count();
        }
        yStats.addAll(values.yStats());
      }
    
      /** Returns an immutable snapshot of the current statistics. */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

                fit,
                stats.xStats().mean(),
                stats.yStats().mean(),
                stats.xStats().populationVariance(),
                stats.populationCovariance());
          }
        }
        assertHorizontalLinearTransformation(
            HORIZONTAL_VALUES_PAIRED_STATS.leastSquaresFit(),
            HORIZONTAL_VALUES_PAIRED_STATS.yStats().mean());
        assertVerticalLinearTransformation(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 14K bytes
    - Viewed (0)
Back to top