Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for NAN (0.62 sec)

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

            assertFalse(DoubleMath.fuzzyEquals(Double.NaN, a, tolerance));
          }
        }
      }
    
      public void testFuzzyEqualsTwoNaNs() {
        for (double tolerance : TOLERANCE_CANDIDATES) {
          assertTrue(DoubleMath.fuzzyEquals(Double.NaN, Double.NaN, tolerance));
        }
      }
    
      public void testFuzzyEqualsZeroTolerance() {
        // make sure we test -0 tolerance
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LinearTransformation.java

        }
    
        @Override
        public double slope() {
          return NaN;
        }
    
        @Override
        public double transform(double x) {
          return NaN;
        }
    
        @Override
        public LinearTransformation inverse() {
          return this;
        }
    
        @Override
        public String toString() {
          return "NaN";
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/MathTesting.java

                    return input.doubleValue() > 0.0;
                  }
                });
        DOUBLE_CANDIDATES_EXCEPT_NAN = Iterables.concat(FINITE_DOUBLE_CANDIDATES, INFINITIES);
        ALL_DOUBLE_CANDIDATES = Iterables.concat(DOUBLE_CANDIDATES_EXCEPT_NAN, asList(Double.NaN));
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/Stats.java

       * the arithmetic mean of the population.
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains {@link Double#NaN} then the result is {@link Double#NaN}. If it
       * contains both {@link Double#POSITIVE_INFINITY} and {@link Double#NEGATIVE_INFINITY} then the
       * result is {@link Double#NaN}. If it contains {@link Double#POSITIVE_INFINITY} and finite values
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/MathTesting.java

                    return input.doubleValue() > 0.0;
                  }
                });
        DOUBLE_CANDIDATES_EXCEPT_NAN = Iterables.concat(FINITE_DOUBLE_CANDIDATES, INFINITIES);
        ALL_DOUBLE_CANDIDATES = Iterables.concat(DOUBLE_CANDIDATES_EXCEPT_NAN, asList(Double.NaN));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckNonNegative_nanFloat() {
        try {
          MathPreconditions.checkNonNegative("float", Float.NaN);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckNonNegative_zeroDouble() {
        MathPreconditions.checkNonNegative("double", 0d);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Doubles.java

       * written to or read from it. For example, whether {@code list.get(0) == list.get(0)} is true for
       * the returned list is unspecified.
       *
       * <p>The returned list may have unexpected behavior if it contains {@code NaN}, or if {@code NaN}
       * is used as a parameter to any of its methods.
       *
       * <p>The returned list is serializable.
       *
       * <p><b>Note:</b> when possible, you should represent your data as an {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/StatsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.lang.Double.NEGATIVE_INFINITY;
    import static java.lang.Double.NaN;
    import static java.lang.Double.POSITIVE_INFINITY;
    import static java.lang.Math.sqrt;
    import static java.util.Arrays.stream;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    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)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

            ImmutableDoubleArray.of(-0.0, 0.0, Double.MAX_VALUE, Double.POSITIVE_INFINITY, Double.NaN);
        assertThat(iia.indexOf(-0.0)).isEqualTo(0);
        assertThat(iia.indexOf(0.0)).isEqualTo(1);
        assertThat(iia.indexOf(Double.MAX_VALUE)).isEqualTo(2);
        assertThat(iia.indexOf(Double.POSITIVE_INFINITY)).isEqualTo(3);
        assertThat(iia.indexOf(Double.NaN)).isEqualTo(4);
      }
    
      public void testLastIndexOf() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/QuantilesTest.java

            .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
            .containsExactly(
                0, NaN,
                1, NaN,
                2, NaN,
                8, NaN,
                9, NaN,
                10, NaN);
      }
    
      public void testScale_index_compute_doubleCollection_nan() {
        assertThat(Quantiles.scale(10).index(5).compute(ONE_TO_FIVE_AND_NAN)).isNaN();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
Back to top