Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 601 for double (0.25 sec)

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

        }
      }
    
      private static double[] longsToDoubles(long[] longs) {
        int len = longs.length;
        double[] doubles = new double[len];
        for (int i = 0; i < len; i++) {
          doubles[i] = longs[i];
        }
        return doubles;
      }
    
      private static double[] intsToDoubles(int[] ints) {
        int len = ints.length;
        double[] doubles = new double[len];
        for (int i = 0; i < len; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

     */
    public class DoubleMathBenchmark {
      private static final double[] positiveDoubles = new double[ARRAY_SIZE];
      private static final int[] factorials = new int[ARRAY_SIZE];
      private static final double[] doubles = new double[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positiveDoubles[i] = randomPositiveDouble();
          doubles[i] = randomDouble(Long.SIZE);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  3. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  4. 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() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  5. android/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() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

     */
    public class DoubleMathBenchmark {
      private static final double[] positiveDoubles = new double[ARRAY_SIZE];
      private static final int[] factorials = new int[ARRAY_SIZE];
      private static final double[] doubles = new double[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positiveDoubles[i] = randomPositiveDouble();
          doubles[i] = randomDouble(Long.SIZE);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMappingAnd_horizontal() {
        double x1 = 1.2;
        double xDelta = 3.4;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingAnd_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        double yDelta = 5.6;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMappingAnd_horizontal() {
        double x1 = 1.2;
        double xDelta = 3.4;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingAnd_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        double yDelta = 5.6;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/BigIntegerMath.java

       * infinite {@code double} values are considered infinitely far away. For example, 2^2000 is not
       * representable as a double, but {@code roundToDouble(BigInteger.valueOf(2).pow(2000), HALF_UP)}
       * will return {@code Double.MAX_VALUE}, not {@code Double.POSITIVE_INFINITY}.
       *
       * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
    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)
  10. 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)
Back to top