Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for FINITE (0.36 sec)

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

       * is not guaranteed to return zero when the dataset consists of the same value multiple times,
       * due to numerical errors. However, it is guaranteed never to return a negative result.
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

              -20,
              Double.NaN,
              Double.NEGATIVE_INFINITY,
              -0.001);
    
      public void testFuzzyEqualsFinite() {
        for (double a : FINITE_DOUBLE_CANDIDATES) {
          for (double b : FINITE_DOUBLE_CANDIDATES) {
            for (double tolerance : FINITE_TOLERANCE_CANDIDATES) {
              assertEquals(Math.abs(a - b) <= tolerance, DoubleMath.fuzzyEquals(a, b, tolerance));
            }
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

       *
       * <p>This is guaranteed to return zero if the dataset contains a single pair of finite values. It
       * is not guaranteed to return zero when the dataset consists of the same pair of values multiple
       * times, due to numerical errors.
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
    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)
  4. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

     */
    
    package com.google.common.math;
    
    import static com.google.common.math.MathTesting.ALL_BIGINTEGER_CANDIDATES;
    import static com.google.common.math.MathTesting.FINITE_DOUBLE_CANDIDATES;
    import static com.google.common.math.MathTesting.POSITIVE_FINITE_DOUBLE_CANDIDATES;
    import static org.junit.Assert.assertThrows;
    
    import java.lang.reflect.Method;
    import java.math.BigInteger;
    import junit.framework.TestCase;
    
    /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/DoubleMath.java

      public static int log2(double x, RoundingMode mode) {
        checkArgument(x > 0.0 && isFinite(x), "x must be positive and finite");
        int exponent = getExponent(x);
        if (!isNormal(x)) {
          return log2(x * IMPLICIT_BIT, mode) - SIGNIFICAND_BITS;
          // Do the calculation on a normal value.
        }
        // x is positive, finite, and normal
        boolean increment;
        switch (mode) {
          case UNNECESSARY:
    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)
  6. guava-tests/test/com/google/common/math/QuantilesTest.java

                  // Test for equality to allow non-finite values to match; otherwise, use the finite
                  // test.
                  return actual.equals(expected)
                      || FINITE_QUANTILE_CORRESPONDENCE.compare(actual, expected);
                }
              },
              "is identical to or " + FINITE_QUANTILE_CORRESPONDENCE);
    
    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)
  7. android/guava-tests/test/com/google/common/math/QuantilesTest.java

                  // Test for equality to allow non-finite values to match; otherwise, use the finite
                  // test.
                  return actual.equals(expected)
                      || FINITE_QUANTILE_CORRESPONDENCE.compare(actual, expected);
                }
              },
              "is identical to or " + FINITE_QUANTILE_CORRESPONDENCE);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/StatsAccumulator.java

         *
         * Consequently:
         * 1. If the previous mean is finite and the new value is non-finite then the new mean is that
         *    value (whether it is NaN or infinity).
         * 2. If the new value is finite and the previous mean is non-finite then the mean is unchanged
         *    (whether it is NaN or infinity).
         * 3. If both the previous mean and the new value are non-finite and...
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/StatsTesting.java

      /**
       * Helper class for testing with non-finite values. {@link #ALL_MANY_VALUES} gives a number of
       * instances with many combinations of finite and non-finite values. All have {@link
       * #MANY_VALUES_COUNT} values. If all the values are finite then the mean is {@link
       * #MANY_VALUES_MEAN} and the sum-of-squares-of-deltas is {@link
       * #MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS}. The smallest and largest finite values are always
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/PairedStats.java

       *
       * <p>This is guaranteed to return zero if the dataset contains a single pair of finite values. It
       * is not guaranteed to return zero when the dataset consists of the same pair of values multiple
       * times, due to numerical errors.
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
    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)
Back to top