Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 132 for Floor (0.29 sec)

  1. src/math/rand/zipf.go

    func (z *Zipf) Uint64() uint64 {
    	if z == nil {
    		panic("rand: nil Zipf")
    	}
    	k := 0.0
    
    	for {
    		r := z.r.Float64() // r on [0,1]
    		ur := z.hxm + r*z.hx0minusHxm
    		x := z.hinv(ur)
    		k = math.Floor(x + 0.5)
    		if k-x <= z.s {
    			break
    		}
    		if ur >= z.h(k+0.5)-math.Exp(-math.Log(k+z.v)*z.q) {
    			break
    		}
    	}
    	return uint64(k)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/MathTesting.java

    import static java.math.BigInteger.ONE;
    import static java.math.BigInteger.ZERO;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    import static java.math.RoundingMode.HALF_UP;
    import static java.math.RoundingMode.UP;
    import static java.util.Arrays.asList;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  3. src/math/rand/v2/zipf.go

    func (z *Zipf) Uint64() uint64 {
    	if z == nil {
    		panic("rand: nil Zipf")
    	}
    	k := 0.0
    
    	for {
    		r := z.r.Float64() // r on [0,1]
    		ur := z.hxm + r*z.hx0minusHxm
    		x := z.hinv(ur)
    		k = math.Floor(x + 0.5)
    		if k-x <= z.s {
    			break
    		}
    		if ur >= z.h(k+0.5)-math.Exp(-math.Log(k+z.v)*z.q) {
    			break
    		}
    	}
    	return uint64(k)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 14:29:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. cmd/kube-proxy/app/server_linux.go

    	if config.MaxPerCore != nil && *config.MaxPerCore > 0 {
    		floor := 0
    		if config.Min != nil {
    			floor = int(*config.Min)
    		}
    		scaled := int(*config.MaxPerCore) * detectNumCPU()
    		if scaled > floor {
    			logger.V(3).Info("GetConntrackMax: using scaled conntrack-max-per-core")
    			return scaled, nil
    		}
    		logger.V(3).Info("GetConntrackMax: using conntrack-min")
    		return floor, nil
    	}
    	return 0, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_s390x.s

    	// containing v to OR with the entire word atomically.
    	MOVD	$(3<<3), R5
    	RXSBG	$59, $60, $3, R3, R5 // R5 = 24 - ((addr % 4) * 8) = ((addr & 3) << 3) ^ (3 << 3)
    	ANDW	$~3, R3              // R3 = floor(addr, 4) = addr &^ 3
    	SLW	R5, R4               // R4 = uint32(v) << R5
    	LAO	R4, R6, 0(R3)        // R6 = *R3; *R3 |= R4; (atomic)
    	RET
    
    // func And8(addr *uint8, v uint8)
    TEXT ·And8(SB), NOSPLIT, $0-9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    			// `memory.high=floor[(requests.memory + memory throttling factor * (limits.memory or node allocatable memory - requests.memory))/pageSize] * pageSize`
    			// where default value of memory throttling factor is set to 0.9
    			// More info: https://git.k8s.io/enhancements/keps/sig-node/2570-memory-qos
    			memoryHigh := int64(0)
    			if memoryLimit != 0 {
    				memoryHigh = int64(math.Floor(
    					float64(memoryRequest)+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

    import static com.google.common.math.MathTesting.POSITIVE_FINITE_DOUBLE_CANDIDATES;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    import static java.math.RoundingMode.HALF_UP;
    import static java.math.RoundingMode.UNNECESSARY;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        // is an integer 199*index/2. If index is odd, that is halfway between floor(199*index/2) and
        // ceil(199*index/2).
        if (index % 2 == 0) {
          int position = IntMath.divide(199 * index, 2, UNNECESSARY);
          return PSEUDORANDOM_DATASET_SORTED.get(position);
        } else {
          int positionFloor = IntMath.divide(199 * index, 2, FLOOR);
          int positionCeil = IntMath.divide(199 * index, 2, CEILING);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    		return 0, fmt.Errorf("invalid value for IntOrString: %v", err)
    	}
    	if isPercent {
    		if roundUp {
    			value = int(math.Ceil(float64(value) * (float64(total)) / 100))
    		} else {
    			value = int(math.Floor(float64(value) * (float64(total)) / 100))
    		}
    	}
    	return value, nil
    }
    
    // GetValueFromIntOrPercent was deprecated in favor of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/ExcludeJsonLogToCode.groovy

            "wealth",
            "cabbage",
            "playground",
            "wren",
            "flowers",
            "cobweb",
            "shame",
            "plate",
            "authority",
            "cave",
            "floor",
            "shelf",
            "snakes",
            "ants",
            "comparison",
            "quicksand",
            "eyes",
            "thumb",
            "church",
            "needle",
            "celery",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top