Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for isNaN (0.16 sec)

  1. android/guava/src/com/google/common/math/DoubleMath.java

            // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics
            || (a == b) // needed to ensure that infinities equal themselves
            || (Double.isNaN(a) && Double.isNaN(b));
      }
    
      /**
       * Compares {@code a} and {@code b} "fuzzily," with a tolerance for nearly-equal values.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

    package com.google.common.math;
    
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.primitives.Doubles.isFinite;
    import static java.lang.Double.NaN;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.primitives.Doubles;
    
    /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          if (values.hasAnyNonFinite()) {
            assertWithMessage("population covariance of " + values).that(populationCovariance).isNaN();
            assertWithMessage("population covariance by addAll(PairedStats) of " + values)
                .that(populationCovarianceByAddAllPartitionedPairedStats)
                .isNaN();
          } else {
            assertWithMessage("population covariance of " + values)
                .that(populationCovariance)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          if (values.hasAnyNonFinite()) {
            assertWithMessage("population covariance of " + values).that(populationCovariance).isNaN();
            assertWithMessage("population covariance by addAll(PairedStats) of " + values)
                .that(populationCovarianceByAddAllPartitionedPairedStats)
                .isNaN();
          } else {
            assertWithMessage("population covariance of " + values)
                .that(populationCovariance)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(ONE_VALUE_STATS.populationVariance()).isWithin(0.0).of(0.0);
        assertThat(Stats.of(POSITIVE_INFINITY).populationVariance()).isNaN();
        assertThat(Stats.of(NEGATIVE_INFINITY).populationVariance()).isNaN();
        assertThat(Stats.of(NaN).populationVariance()).isNaN();
        assertThat(TWO_VALUES_STATS.populationVariance())
            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_SQUARES_OF_DELTAS / 2);
    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)
  6. android/guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(ONE_VALUE_STATS.populationVariance()).isWithin(0.0).of(0.0);
        assertThat(Stats.of(POSITIVE_INFINITY).populationVariance()).isNaN();
        assertThat(Stats.of(NEGATIVE_INFINITY).populationVariance()).isNaN();
        assertThat(Stats.of(NaN).populationVariance()).isNaN();
        assertThat(TWO_VALUES_STATS.populationVariance())
            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_SQUARES_OF_DELTAS / 2);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThat(createSingleStats(Double.POSITIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NEGATIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NaN, 1.23).populationCovariance()).isNaN();
        assertThat(TWO_VALUES_PAIRED_STATS.populationCovariance())
            .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThat(createSingleStats(Double.POSITIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NEGATIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NaN, 1.23).populationCovariance()).isNaN();
        assertThat(TWO_VALUES_PAIRED_STATS.populationCovariance())
            .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/PairedStats.java

    import static com.google.common.base.Preconditions.checkState;
    import static java.lang.Double.NaN;
    import static java.lang.Double.doubleToLongBits;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.MoreObjects;
    import com.google.common.base.Objects;
    import java.io.Serializable;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

            assertWithMessage("mean of " + values).that(mean).isNaN();
            assertWithMessage("mean by addAll(Stats) of " + values).that(meanByAddAllStats).isNaN();
          } else if (values.hasAnyPositiveInfinity() && values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of " + values).that(mean).isNaN();
            assertWithMessage("mean by addAll(Stats) of " + values).that(meanByAddAllStats).isNaN();
          } else if (values.hasAnyPositiveInfinity()) {
    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)
Back to top