Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for sampleVariance (0.16 sec)

  1. 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(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 36.5K bytes
    - Viewed (0)
  2. 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(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 34K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/StatsTest.java

      public void testSampleVariance() {
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_VARARGS.sampleVariance());
        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);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/StatsTest.java

      public void testSampleVariance() {
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_VARARGS.sampleVariance());
        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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
  5. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
Back to top