fix golint issues in core/mathx (#498)
This commit is contained in:
@@ -4,6 +4,7 @@ import "math"
|
||||
|
||||
const epsilon = 1e-6
|
||||
|
||||
// CalcEntropy calculates the entropy of m.
|
||||
func CalcEntropy(m map[interface{}]int) float64 {
|
||||
if len(m) == 0 || len(m) == 1 {
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user