Normalize returns a normalized [0, 1] value for the position of x.
(min, max, x float64)
| 210 | |
| 211 | // Normalize returns a normalized [0, 1] value for the position of x. |
| 212 | func (is InvertedScale) Normalize(min, max, x float64) float64 { |
| 213 | return is.Normalizer.Normalize(max, min, x) |
| 214 | } |
| 215 | |
| 216 | // Norm returns the value of x, given in the data coordinate |
| 217 | // system, normalized to its distance as a fraction of the |