Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 348 for Doubles (0.08 sec)

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

       */
      abstract double singleQuantile(int index, int scale, double[] dataset);
    
      /**
       * Calculates multiple quantiles. Equivalent to {@code
       * Quantiles.scale(scale).indexes(indexes).computeInPlace(dataset)}.
       */
      abstract Map<Integer, Double> multipleQuantiles(
          Collection<Integer> indexes, int scale, double[] dataset);
    
      static double getMinValue(double[] array, int from) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

     * Double#doubleToRawLongBits}, which differs from both the primitive double {@code ==} operator and
     * from {@link Double#equals}, as if implemented by:
     *
     * <pre>{@code
     * static boolean bitEquals(double x, double y) {
     *   long xBits = Double.doubleToRawLongBits(x);
     *   long yBits = Double.doubleToRawLongBits(y);
     *   return xBits == yBits;
     * }
     * }</pre>
     *
     * @author Doug Lea
     * @author Martin Buchholz
     * @since 11.0
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java

     *
     * @author Louis Wasserman
     */
    public class DoubleMathRoundingBenchmark {
      private static final double[] doubleInIntRange = new double[ARRAY_SIZE];
      private static final double[] doubleInLongRange = new double[ARRAY_SIZE];
      private static final double[] positiveDoubles = new double[ARRAY_SIZE];
    
      @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"})
      RoundingMode mode;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        for (double positiveValue : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          assertThat(DoubleUtils.ensureNonNegative(positiveValue)).isEqualTo(positiveValue);
          assertThat(DoubleUtils.ensureNonNegative(-positiveValue)).isEqualTo(0.0);
        }
        assertThat(DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)).isPositiveInfinity();
        assertThat(DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)).isEqualTo(0.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      private static final double[] VALUES = {
        Double.NEGATIVE_INFINITY,
        -Double.MAX_VALUE,
        (double) Long.MIN_VALUE,
        (double) Integer.MIN_VALUE,
        -Math.PI,
        -1.0,
        -Double.MIN_VALUE,
        -0.0,
        +0.0,
        Double.MIN_VALUE,
        1.0,
        Math.PI,
        (double) Integer.MAX_VALUE,
        (double) Long.MAX_VALUE,
        Double.MAX_VALUE,
        Double.POSITIVE_INFINITY,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

      private static final double ALLOWED_ERROR = 1.0e-10;
      private static final QuantilesAlgorithm REFERENCE_ALGORITHM = QuantilesAlgorithm.SORTING;
      private static final Set<QuantilesAlgorithm> NON_REFERENCE_ALGORITHMS =
          Sets.difference(
              ImmutableSet.copyOf(QuantilesAlgorithm.values()), ImmutableSet.of(REFERENCE_ALGORITHM));
    
      private double[] dataset;
    
      @Override
      protected void setUp() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

      public void testCheckNonNegative_zeroDouble() {
        MathPreconditions.checkNonNegative("double", 0d);
      }
    
      public void testCheckNonNegative_maxDouble() {
        MathPreconditions.checkNonNegative("double", Double.MAX_VALUE);
      }
    
      public void testCheckNonNegative_minDouble() {
        MathPreconditions.checkNonNegative("double", Double.MIN_VALUE);
      }
    
      public void testCheckNonNegative_positiveDouble() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/ToDoubleRounder.java

            case HALF_UP:
              return Double.MAX_VALUE * sign(x);
            case FLOOR:
              return (roundArbitrarily == Double.POSITIVE_INFINITY)
                  ? Double.MAX_VALUE
                  : Double.NEGATIVE_INFINITY;
            case CEILING:
              return (roundArbitrarily == Double.POSITIVE_INFINITY)
                  ? Double.POSITIVE_INFINITY
                  : -Double.MAX_VALUE;
            case UP:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/collect/MultipleSetContainsBenchmark.java

    public class MultipleSetContainsBenchmark {
    
      @Param({"0.0", "0.1", "0.7", "1.0"})
      double emptySetProportion;
    
      @Param({"0.0", "0.1", "0.7", "1.0"})
      double singletonSetProportion;
    
      @Param({"0.2", "0.8"})
      double hitRate;
    
      static final Object PRESENT = new Object();
      static final Object ABSENT = new Object();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/PairedStats.java

              .toString();
        }
      }
    
      double sumOfProductsOfDeltas() {
        return sumOfProductsOfDeltas;
      }
    
      private static double ensurePositive(double value) {
        if (value > 0.0) {
          return value;
        } else {
          return Double.MIN_VALUE;
        }
      }
    
      private static double ensureInUnitRange(double value) {
        if (value >= 1.0) {
          return 1.0;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
Back to top