mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-04 18:49:00 -06:00
clean up
This commit is contained in:
@@ -243,17 +243,11 @@ const (
|
||||
// treated as a uniform random number between [0,1),
|
||||
// is less than this percentage.
|
||||
func weibullCheck(size, thisSize, hash uint32) bool {
|
||||
//start := -math.Expm1(-math.Pow(startx/L, K))
|
||||
startx := float64(size - thisSize)
|
||||
tmp := startx / L
|
||||
pow := tmp * tmp * tmp * tmp
|
||||
start := -math.Expm1(-pow)
|
||||
pow := float64(size-thisSize) / L
|
||||
start := -math.Expm1(-(pow * pow * pow * pow))
|
||||
|
||||
//end := -math.Expm1(-math.Pow(endx/L, K))
|
||||
endx := float64(size)
|
||||
tmp = endx / L
|
||||
pow = tmp * tmp * tmp * tmp
|
||||
end := -math.Expm1(-pow)
|
||||
pow = float64(size) / L
|
||||
end := -math.Expm1(-(pow * pow * pow * pow))
|
||||
|
||||
p := float64(hash) / maxUint32
|
||||
d := 1 - start
|
||||
|
||||
Reference in New Issue
Block a user