Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 528 for double (0.2 sec)

  1. android/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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Defaults.java

     *
     * @author Ben Yu
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class Defaults {
      private Defaults() {}
    
      private static final Double DOUBLE_DEFAULT = 0d;
      private static final Float FLOAT_DEFAULT = 0f;
    
      /**
       * Returns the default value of {@code type} as defined by JLS --- {@code 0} for numbers, {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/DoublesMethodsForWeb.java

    import jsinterop.annotations.JsPackage;
    
    /** Web specializations for {@link Doubles} methods. */
    public abstract class DoublesMethodsForWeb {
    
      @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
      public static native double min(double... array);
    
      @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
      public static native double max(double... array);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Oct 26 00:50:12 GMT 2023
    - 1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/LinearTransformation.java

        final double slope;
        final double yIntercept;
    
        @CheckForNull @LazyInit LinearTransformation inverse;
    
        RegularLinearTransformation(double slope, double yIntercept) {
          this.slope = slope;
          this.yIntercept = yIntercept;
          this.inverse = null; // to be lazily initialized
        }
    
    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)
  5. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

        final double maxBurstSeconds;
    
        SmoothBursty(SleepingStopwatch stopwatch, double maxBurstSeconds) {
          super(stopwatch);
          this.maxBurstSeconds = maxBurstSeconds;
        }
    
        @Override
        void doSetRate(double permitsPerSecond, double stableIntervalMicros) {
          double oldMaxPermits = this.maxPermits;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  6. android/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:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

            assertEquals(0, new BigDecimal("0.01").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.01D))));
            assertEquals(0, new BigDecimal("0.001").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.001D))));
            assertEquals(0, new BigDecimal("0.0001").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.0001D))));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_wayTooBig() {
        BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT);
        new RoundToDoubleTester(bi)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_wayTooBig() {
        BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT);
        new RoundToDoubleTester(bi)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

      @Param QuantilesAlgorithm algorithm;
    
      private double[][] datasets = new double[0x100][];
    
      @BeforeExperiment
      void setUp() {
        Random rng = new Random();
        for (int i = 0; i < 0x100; i++) {
          datasets[i] = new double[datasetSize];
          for (int j = 0; j < datasetSize; j++) {
            datasets[i][j] = rng.nextDouble();
          }
        }
      }
    
      private double[] dataset(int i) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.1K bytes
    - Viewed (0)
Back to top