Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 339 for double (0.5 sec)

  1. 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)
  2. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          PairedStatsAccumulator accumulatorByAddAllPartitionedPairedStats =
              createPartitionedFilledPairedStatsAccumulator(values.asIterable(), OTHER_MANY_VALUES, 2);
          double populationCovariance = accumulator.populationCovariance();
          double populationCovarianceByAddAllPartitionedPairedStats =
              accumulatorByAddAllPartitionedPairedStats.populationCovariance();
          if (values.hasAnyNonFinite()) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          PairedStatsAccumulator accumulatorByAddAllPartitionedPairedStats =
              createPartitionedFilledPairedStatsAccumulator(values.asIterable(), OTHER_MANY_VALUES, 2);
          double populationCovariance = accumulator.populationCovariance();
          double populationCovarianceByAddAllPartitionedPairedStats =
              accumulatorByAddAllPartitionedPairedStats.populationCovariance();
          if (values.hasAnyNonFinite()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  4. 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)
  5. android/guava-tests/test/com/google/common/primitives/DoubleArrayAsListTest.java

          Double[] suffix = {(double) 86, (double) 99};
          Double[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Double[] concat(Double[] left, Double[] right) {
        Double[] result = new Double[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/Encdec.java

        }
    
        /* Encode and decode doubles
         */
    
        public static int enc_doublele( double d, byte[] dst, int di )
        {
            return enc_uint64le( Double.doubleToLongBits( d ), dst, di );
        }
        public static int enc_doublebe( double d, byte[] dst, int di )
        {
            return enc_uint64be( Double.doubleToLongBits( d ), dst, di );
        }
        public static double dec_doublele( byte[] src, int si )
        {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

        KAHAN {
          @Override
          double mean(double[] values) {
            double sum = 0.0;
            double c = 0.0;
            for (double value : values) {
              double y = value - c;
              double t = sum + y;
              c = (t - sum) - y;
              sum = t;
            }
            return sum / values.length;
          }
        },
        KNUTH {
          @Override
          double mean(double[] values) {
            double mean = values[0];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  8. 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)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        double expectedReportedFpp = (double) knownNumberOfFalsePositives / numInsertions;
        double actualReportedFpp = bf.expectedFpp();
        assertEquals(expectedReportedFpp, actualReportedFpp, 0.00033);
      }
    
      /** Sanity checking with many combinations of false positive rates and expected insertions */
      public void testBasic() {
        for (double fpr = 0.0000001; fpr < 0.1; fpr *= 10) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

          return LinearTransformation.vertical(xStats.mean());
        }
      }
    
      private double ensurePositive(double value) {
        if (value > 0.0) {
          return value;
        } else {
          return Double.MIN_VALUE;
        }
      }
    
      private static double ensureInUnitRange(double value) {
        return Doubles.constrainToRange(value, -1.0, 1.0);
      }
    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)
Back to top