Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for isInfinite (0.04 sec)

  1. guava/src/com/google/common/math/ToDoubleRounder.java

      final double roundToDouble(X x, RoundingMode mode) {
        checkNotNull(x, "x");
        checkNotNull(mode, "mode");
        double roundArbitrarily = roundToDoubleArbitrarily(x);
        if (Double.isInfinite(roundArbitrarily)) {
          switch (mode) {
            case DOWN:
            case HALF_EVEN:
            case HALF_DOWN:
            case HALF_UP:
              return Double.MAX_VALUE * sign(x);
            case FLOOR:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            assertTrue(infinityOpt.isPresent());
            assertTrue(Double.isInfinite(infinityOpt.get()));
    
            OptionalEntity<Float> negInfinityOpt = OptionalUtil.ofNullable(Float.NEGATIVE_INFINITY);
            assertTrue(negInfinityOpt.isPresent());
            assertTrue(Float.isInfinite(negInfinityOpt.get()));
    
            // Test with very large strings
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      public void testIsPowerOfTwo() {
        for (double x : ALL_DOUBLE_CANDIDATES) {
          boolean expected =
              x > 0
                  && !Double.isInfinite(x)
                  && !Double.isNaN(x)
                  && StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x;
          assertEquals(expected, DoubleMath.isPowerOfTwo(x));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Floats.java

       * necessarily implemented as, {@code !(Float.isInfinite(value) || Float.isNaN(value))}.
       *
       * <p>Prefer {@link Float#isFinite(float)} instead.
       *
       * @since 10.0
       */
      @InlineMe(replacement = "Float.isFinite(value)")
      public static boolean isFinite(float value) {
        return Float.isFinite(value);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Doubles.java

       * necessarily implemented as, {@code !(Double.isInfinite(value) || Double.isNaN(value))}.
       *
       * <p>Prefer {@link Double#isFinite(double)} instead.
       *
       * @since 10.0
       */
      @InlineMe(replacement = "Double.isFinite(value)")
      public static boolean isFinite(double value) {
        return Double.isFinite(value);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LinearTransformation.java

       * LinearTransformationBuilder#withSlope} on the returned object to finish building the instance.
       */
      public static LinearTransformationBuilder mapping(double x1, double y1) {
        checkArgument(isFinite(x1) && isFinite(y1));
        return new LinearTransformationBuilder(x1, y1);
      }
    
      /**
       * This is an intermediate stage in the construction process. It is returned by {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/math/PairedStatsAccumulator.java

        //               = x_n y_n - X_n y_n - x_n Y_{n-1} + X_n Y_{n-1}
        //               = (x_n - X_n) (y_n - Y_{n-1})
        xStats.add(x);
        if (isFinite(x) && isFinite(y)) {
          if (xStats.count() > 1) {
            sumOfProductsOfDeltas += (x - xStats.mean()) * (y - yStats.mean());
          }
        } else {
          sumOfProductsOfDeltas = NaN;
        }
        yStats.add(y);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/StatsAccumulator.java

      public void add(double value) {
        if (count == 0) {
          count = 1;
          mean = value;
          min = value;
          max = value;
          if (!isFinite(value)) {
            sumOfSquaresOfDeltas = NaN;
          }
        } else {
          count++;
          if (isFinite(value) && isFinite(mean)) {
            // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15) and (16)
            double delta = value - mean;
            mean += delta / count;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/Stats.java

        long count = 1;
        double mean = values.next().doubleValue();
        while (values.hasNext()) {
          double value = values.next().doubleValue();
          count++;
          if (isFinite(value) && isFinite(mean)) {
            // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
            mean += (value - mean) / count;
          } else {
            mean = calculateNewMeanNonFinite(mean, value);
          }
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        PAST(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO),
        FUTURE(Timeout.SMALL, Timeout.MAX),
        SMALL(Timeout.SMALL),
        FINITE(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO, Timeout.SMALL),
        INFINITE(Timeout.LARGE, Timeout.MAX);
    
        final ImmutableList<Timeout> timeouts;
    
        TimeoutsToUse(Timeout... timeouts) {
          this.timeouts = ImmutableList.copyOf(timeouts);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
Back to top