Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for doubleToLongBits (0.07 sec)

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

        }
        Stats other = (Stats) obj;
        return count == other.count
            && doubleToLongBits(mean) == doubleToLongBits(other.mean)
            && doubleToLongBits(sumOfSquaresOfDeltas) == doubleToLongBits(other.sumOfSquaresOfDeltas)
            && doubleToLongBits(min) == doubleToLongBits(other.min)
            && doubleToLongBits(max) == doubleToLongBits(other.max);
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/PairedStats.java

          return false;
        }
        PairedStats other = (PairedStats) obj;
        return xStats.equals(other.xStats)
            && yStats.equals(other.yStats)
            && doubleToLongBits(sumOfProductsOfDeltas) == doubleToLongBits(other.sumOfProductsOfDeltas);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p><b>Note:</b> This hash code is consistent with exact equality of the calculated statistics,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

       * using little-endian byte order.
       *
       * @throws IOException if an I/O error occurs
       */
      @Override
      public void writeDouble(double v) throws IOException {
        writeLong(Double.doubleToLongBits(v));
      }
    
      /**
       * Writes a {@code float} as specified by {@link DataOutputStream#writeFloat(float)}, except using
       * little-endian byte order.
       *
       * @throws IOException if an I/O error occurs
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        assertEquals(0xBEBAFECAEFBEADDEL, in.readLong());
        assertEquals("Herby Derby", in.readUTF());
        assertEquals(0xBEBAFECA, Float.floatToIntBits(in.readFloat()));
        assertEquals(0xBEBAFECAEFBEADDEL, Double.doubleToLongBits(in.readDouble()));
      }
    
      public void testSkipBytes() throws IOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        DataOutputStream out = new DataOutputStream(baos);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/MathTesting.java

          }
        }
        for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) {
          for (int direction : new int[] {1, -1}) {
            double d = Double.longBitsToDouble(Double.doubleToLongBits(Math.scalb(1.0, i)) + direction);
            // Math.nextUp/nextDown
            if (d != Math.rint(d)) {
              fractionalBuilder.add(d);
            }
          }
        }
        for (double d :
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top