Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for erf (0.02 sec)

  1. src/hash/maphash/smhasher_test.go

    	// all sums inside those bounds with 99% probability.
    	N := n * hashSize
    	var c float64
    	// find c such that Prob(mean-c*stddev < x < mean+c*stddev)^N > .9999
    	for c = 0.0; math.Pow(math.Erf(c/math.Sqrt(2)), float64(N)) < .9999; c += .1 {
    	}
    	c *= 11.0 // allowed slack: 40% to 60% - we don't need to be perfectly random
    	mean := .5 * REP
    	stddev := .5 * math.Sqrt(REP)
    	low := int(mean - c*stddev)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/hash_test.go

    	// all sums inside those bounds with 99% probability.
    	N := n * hashSize
    	var c float64
    	// find c such that Prob(mean-c*stddev < x < mean+c*stddev)^N > .9999
    	for c = 0.0; math.Pow(math.Erf(c/math.Sqrt(2)), float64(N)) < .9999; c += .1 {
    	}
    	c *= 11.0 // allowed slack: 40% to 60% - we don't need to be perfectly random
    	mean := .5 * REP
    	stddev := .5 * math.Sqrt(REP)
    	low := int(mean - c*stddev)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top