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