mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
add subset algorithm
This commit is contained in:
@@ -65,7 +65,7 @@ func TestUnstable_Distribution(t *testing.T) {
|
||||
for k, v := range m {
|
||||
mi[k] = v
|
||||
}
|
||||
entropy := CalcEntropy(mi, total)
|
||||
entropy := CalcEntropy(mi)
|
||||
assert.True(t, len(m) > 1)
|
||||
assert.True(t, entropy > 0.95)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user