Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for populationVariance (0.57 sec)

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

        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_VARARGS.populationVariance());
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_ITERABLE.populationVariance());
        assertThat(ONE_VALUE_STATS.populationVariance()).isEqualTo(0.0);
        assertThat(Stats.of(POSITIVE_INFINITY).populationVariance()).isNaN();
        assertThat(Stats.of(NEGATIVE_INFINITY).populationVariance()).isNaN();
        assertThat(Stats.of(NaN).populationVariance()).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)
  2. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        assertThrows(IllegalStateException.class, () -> emptyAccumulator.populationVariance());
        assertThrows(
            IllegalStateException.class,
            () -> emptyAccumulatorByAddAllEmptyIterable.populationVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyStats.populationVariance());
        assertThat(oneValueAccumulator.populationVariance()).isEqualTo(0.0);
    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

        assertThrows(IllegalStateException.class, () -> emptyAccumulator.populationVariance());
        assertThrows(
            IllegalStateException.class,
            () -> emptyAccumulatorByAddAllEmptyIterable.populationVariance());
        assertThrows(
            IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyStats.populationVariance());
        assertThat(oneValueAccumulator.populationVariance()).isEqualTo(0.0);
    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. 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
       */
      public final double populationVariance() {
        checkState(count != 0);
        if (isNaN(sumOfSquaresOfDeltas)) {
          return NaN;
        }
        if (count == 1) {
          return 0.0;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. 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
       */
      public double populationVariance() {
        checkState(count > 0);
        if (isNaN(sumOfSquaresOfDeltas)) {
          return NaN;
        }
        if (count == 1) {
          return 0.0;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top