Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for sampleVariance (0.1 seconds)

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

        assertThrows(IllegalStateException.class, EMPTY_STATS_ITERABLE::sampleVariance);
        assertThrows(IllegalStateException.class, ONE_VALUE_STATS::sampleVariance);
        assertThat(TWO_VALUES_STATS.sampleVariance())
            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_SQUARES_OF_DELTAS);
        assertThat(MANY_VALUES_STATS_VARARGS.sampleVariance())
            .isWithin(ALLOWED_ERROR)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 33.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/math/StatsAccumulator.java

       * Double#NEGATIVE_INFINITY}, or {@link Double#NaN}) then the result is {@link Double#NaN}.
       *
       * @throws IllegalStateException if the dataset is empty or contains a single value
       */
      public final double sampleVariance() {
        checkState(count > 1);
        if (isNaN(sumOfSquaresOfDeltas)) {
          return NaN;
        }
        return ensureNonNegative(sumOfSquaresOfDeltas) / (count - 1);
      }
    
      /**
       * Returns the <a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:36:11 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/math/Stats.java

       * Double#NEGATIVE_INFINITY}, or {@link Double#NaN}) then the result is {@link Double#NaN}.
       *
       * @throws IllegalStateException if the dataset is empty or contains a single value
       */
      public double sampleVariance() {
        checkState(count > 1);
        if (isNaN(sumOfSquaresOfDeltas)) {
          return NaN;
        }
        return ensureNonNegative(sumOfSquaresOfDeltas) / (count - 1);
      }
    
      /**
       * Returns the <a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 25.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.sampleVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyStats.sampleVariance());
        assertThrows(IllegalStateException.class, () -> oneValueAccumulator.sampleVariance());
        assertThrows(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.sampleVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyStats.sampleVariance());
        assertThrows(IllegalStateException.class, () -> oneValueAccumulator.sampleVariance());
        assertThrows(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
Back to Top