Normalize returns a normalized [0, 1] value for the position of x.
(min, max, x float32)
| 154 | |
| 155 | // Normalize returns a normalized [0, 1] value for the position of x. |
| 156 | func (is InvertedScale) Normalize(min, max, x float32) float32 { |
| 157 | return is.Normalizer.Normalize(max, min, x) |
| 158 | } |
| 159 | |
| 160 | // Norm returns the value of x, given in the data coordinate |
| 161 | // system, normalized to its distance as a fraction of the |