Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for populationVariance (0.22 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-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

            twoValuesAccumulatorByAddAllPartitionedPairedStats.populationCovariance());
        assertDiagonalLinearTransformation(
            manyValuesAccumulator.leastSquaresFit(),
            manyValuesAccumulator.xStats().mean(),
            manyValuesAccumulator.yStats().mean(),
            manyValuesAccumulator.xStats().populationVariance(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

            twoValuesAccumulatorByAddAllPartitionedPairedStats.populationCovariance());
        assertDiagonalLinearTransformation(
            manyValuesAccumulator.leastSquaresFit(),
            manyValuesAccumulator.xStats().mean(),
            manyValuesAccumulator.yStats().mean(),
            manyValuesAccumulator.xStats().populationVariance(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/PairedStatsTest.java

            TWO_VALUES_PAIRED_STATS.leastSquaresFit(),
            TWO_VALUES_PAIRED_STATS.xStats().mean(),
            TWO_VALUES_PAIRED_STATS.yStats().mean(),
            TWO_VALUES_PAIRED_STATS.xStats().populationVariance(),
            TWO_VALUES_PAIRED_STATS.populationCovariance());
        // For datasets of many double values, we test many combinations of finite and non-finite
        // x-values:
        for (ManyValues values : ALL_MANY_VALUES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. 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)
  8. 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