Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 30 for isnan (0.03 seconds)

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

          if (values.hasAnyNonFinite()) {
            assertWithMessage("population covariance of %s", values).that(populationCovariance).isNaN();
            assertWithMessage("population covariance by addAll(PairedStats) of %s", values)
                .that(populationCovarianceByAddAllPartitionedPairedStats)
                .isNaN();
          } else {
            assertWithMessage("population covariance of %s", values)
                .that(populationCovariance)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/math/DoubleUtils.java

    import static java.lang.Double.MAX_EXPONENT;
    import static java.lang.Double.MIN_EXPONENT;
    import static java.lang.Double.POSITIVE_INFINITY;
    import static java.lang.Double.doubleToRawLongBits;
    import static java.lang.Double.isNaN;
    import static java.lang.Double.longBitsToDouble;
    import static java.lang.Math.getExponent;
    import static java.lang.Math.max;
    
    import com.google.common.annotations.GwtIncompatible;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 5.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

            assertWithMessage("mean of %s", values).that(mean).isNaN();
            assertWithMessage("mean by addAll(Stats) of %s", values).that(meanByAddAllStats).isNaN();
          } else if (values.hasAnyPositiveInfinity() && values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of %s", values).that(mean).isNaN();
            assertWithMessage("mean by addAll(Stats) of %s", values).that(meanByAddAllStats).isNaN();
          } else if (values.hasAnyPositiveInfinity()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 36.9K bytes
    - Click Count (0)
  4. 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)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 14K bytes
    - Click Count (0)
  5. 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)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 14K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

          assertTrue(Double.isNaN(DoubleMath.log2(-d)));
        }
      }
    
      public void testLog2Zero() {
        assertThat(DoubleMath.log2(0.0)).isNegativeInfinity();
        assertThat(DoubleMath.log2(-0.0)).isNegativeInfinity();
      }
    
      public void testLog2NaNInfinity() {
        assertThat(DoubleMath.log2(Double.POSITIVE_INFINITY)).isPositiveInfinity();
        assertTrue(Double.isNaN(DoubleMath.log2(Double.NEGATIVE_INFINITY)));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 27.3K bytes
    - Click Count (0)
  7. guava/src/com/google/common/math/PairedStatsAccumulator.java

     */
    
    package com.google.common.math;
    
    import static com.google.common.base.Preconditions.checkState;
    import static java.lang.Double.NaN;
    import static java.lang.Double.isFinite;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.primitives.Doubles;
    
    /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          if (values.hasAnyNonFinite()) {
            assertWithMessage("population covariance of %s", values).that(populationCovariance).isNaN();
            assertWithMessage("population covariance by addAll(PairedStats) of %s", values)
                .that(populationCovarianceByAddAllPartitionedPairedStats)
                .isNaN();
          } else {
            assertWithMessage("population covariance of %s", values)
                .that(populationCovariance)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  9. tests/test_jsonable_encoder.py

    import warnings
    from collections import deque
    from dataclasses import dataclass
    from datetime import datetime, timezone
    from decimal import Decimal
    from enum import Enum
    from math import isinf, isnan
    from pathlib import PurePath, PurePosixPath, PureWindowsPath
    from typing import Optional, TypedDict
    
    import pytest
    from fastapi._compat import Undefined
    from fastapi.encoders import jsonable_encoder
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/math/DoubleMathTest.java

          assertTrue(Double.isNaN(DoubleMath.log2(-d)));
        }
      }
    
      public void testLog2Zero() {
        assertThat(DoubleMath.log2(0.0)).isNegativeInfinity();
        assertThat(DoubleMath.log2(-0.0)).isNegativeInfinity();
      }
    
      public void testLog2NaNInfinity() {
        assertThat(DoubleMath.log2(Double.POSITIVE_INFINITY)).isPositiveInfinity();
        assertTrue(Double.isNaN(DoubleMath.log2(Double.NEGATIVE_INFINITY)));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 27.3K bytes
    - Click Count (0)
Back to Top