MCPcopy Index your code
hub / github.com/gonum/plot / minAbsMag

Function minAbsMag

labelling.go:185–187  ·  view source on GitHub ↗

minAbsMag returns the minumum magnitude of the absolute values of a and b.

(a, b float64)

Source from the content-addressed store, hash-verified

183
184// minAbsMag returns the minumum magnitude of the absolute values of a and b.
185func minAbsMag(a, b float64) int {
186 return int(math.Min(math.Floor(math.Log10(math.Abs(a))), (math.Floor(math.Log10(math.Abs(b))))))
187}
188
189// simplicity returns the simplicity score for how will the curent q, lMin, lMax,
190// lStep and skip match the given nice numbers, Q.

Callers 1

talbotLinHanrahanFunction · 0.85

Calls 1

MinMethod · 0.65

Tested by

no test coverage detected