mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 02:10:00 +08:00
add subset algorithm
This commit is contained in:
@@ -119,7 +119,7 @@ func TestConsistent_next(t *testing.T) {
|
||||
m[val]++
|
||||
}
|
||||
|
||||
entropy := mathx.CalcEntropy(m, total)
|
||||
entropy := mathx.CalcEntropy(m)
|
||||
assert.Equal(t, size, len(m))
|
||||
assert.True(t, entropy > .95)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user