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

Method score

labelling.go:272–274  ·  view source on GitHub ↗

score returns the score for a labelling scheme with simplicity, s, coverage, c, density, d and legibility l.

(s, c, d, l float64)

Source from the content-addressed store, hash-verified

270// score returns the score for a labelling scheme with simplicity, s,
271// coverage, c, density, d and legibility l.
272func (w *weights) score(s, c, d, l float64) float64 {
273 return w.simplicity*s + w.coverage*c + w.density*d + w.legibility*l
274}

Callers 1

talbotLinHanrahanFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected