Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for numerator (0.05 seconds)

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

          return builder.buildOrThrow();
        }
    
        private double singleQuantileFromSorted(int index, int scale, double[] dataset) {
          long numerator = (long) index * (dataset.length - 1);
          int positionFloor = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
          int remainder = (int) (numerator - positionFloor * scale);
          if (remainder == 0) {
            return dataset[positionFloor];
          } else {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  2. guava/src/com/google/common/math/LongMath.java

                  // It's definitely safe to multiply into numerator and denominator.
                  numerator *= n;
                  denominator *= i;
                  numeratorBits += nBits;
                } else {
                  // It might not be safe to multiply into numerator and denominator,
                  // so multiply (numerator / denominator) into result.
                  result = multiplyFraction(result, numerator, denominator);
                  numerator = n;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 03 21:01:09 GMT 2025
    - 46.8K bytes
    - Click Count (0)
  3. cmd/utils_test.go

    func TestCeilFrac(t *testing.T) {
    	cases := []struct {
    		numerator, denominator, ceiling int64
    	}{
    		{0, 1, 0},
    		{-1, 2, 0},
    		{1, 2, 1},
    		{1, 1, 1},
    		{3, 2, 2},
    		{54, 11, 5},
    		{45, 11, 5},
    		{-4, 3, -1},
    		{4, -3, -1},
    		{-4, -3, 2},
    		{3, 0, 0},
    	}
    	for i, testCase := range cases {
    		ceiling := ceilFrac(testCase.numerator, testCase.denominator)
    		if ceiling != testCase.ceiling {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  4. cmd/utils.go

    }
    
    // ceilFrac takes a numerator and denominator representing a fraction
    // and returns its ceiling. If denominator is 0, it returns 0 instead
    // of crashing.
    func ceilFrac(numerator, denominator int64) (ceil int64) {
    	if denominator == 0 {
    		// do nothing on invalid input
    		return ceil
    	}
    	// Make denominator positive
    	if denominator < 0 {
    		numerator = -numerator
    		denominator = -denominator
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 33K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/math/Quantiles.java

          // a rounded ratio and a remainder which can be expressed as ints, without risk of overflow:
          int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
          int remainder = (int) (numerator - (long) quotient * scale);
          selectInPlace(quotient, dataset, 0, dataset.length - 1);
          if (remainder == 0) {
            return dataset[quotient];
          } else {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 30.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       * quantities.
       *
       * <p><b>Java 8+ users:</b> use {@link Long#divideUnsigned(long, long)} instead.
       *
       * @param dividend the dividend (numerator)
       * @param divisor the divisor (denominator)
       * @throws ArithmeticException if divisor is 0
       */
      public static long divide(long dividend, long divisor) {
        if (divisor < 0) { // i.e., divisor >= 2^63:
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * quantities.
       *
       * <p><b>Java 8+ users:</b> use {@link Integer#divideUnsigned(int, int)} instead.
       *
       * @param dividend the dividend (numerator)
       * @param divisor the divisor (denominator)
       * @throws ArithmeticException if divisor is 0
       */
      public static int divide(int dividend, int divisor) {
        return (int) (toLong(dividend) / toLong(divisor));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Feb 09 16:22:33 GMT 2025
    - 13.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/math/BigIntegerMath.java

        for (int i = 1; i < k; i++) {
          int p = n - i;
          int q = i + 1;
    
          // log2(p) >= bits - 1, because p >= n/2
    
          if (numeratorBits + bits >= Long.SIZE - 1) {
            // The numerator is as big as it can get without risking overflow.
            // Multiply numeratorAccum / denominatorAccum into accum.
            accum =
                accum
                    .multiply(BigInteger.valueOf(numeratorAccum))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  9. okhttp-idna-mapping-table/src/main/resources/okhttp3/internal/idna/IdnaMappingTable.txt

    215E          ; mapped                 ; 0037 2044 0038 #1.1  VULGAR FRACTION SEVEN EIGHTHS
    215F          ; mapped                 ; 0031 2044     # 1.1  FRACTION NUMERATOR ONE
    2160          ; mapped                 ; 0069          # 1.1  ROMAN NUMERAL ONE
    2161          ; mapped                 ; 0069 0069     # 1.1  ROMAN NUMERAL TWO
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Feb 10 11:25:47 GMT 2024
    - 854.1K bytes
    - Click Count (0)
  10. api/go1.txt

    pkg strconv, func UnquoteChar(string, uint8) (int32, bool, string, error)
    pkg strconv, method (*NumError) Error() string
    pkg strconv, type NumError struct
    pkg strconv, type NumError struct, Err error
    pkg strconv, type NumError struct, Func string
    pkg strconv, type NumError struct, Num string
    pkg strconv, var ErrRange error
    pkg strconv, var ErrSyntax error
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Click Count (0)
Back to Top