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

Method Normalize

axis.go:212–214  ·  view source on GitHub ↗

Normalize returns a normalized [0, 1] value for the position of x.

(min, max, x float64)

Source from the content-addressed store, hash-verified

210
211// Normalize returns a normalized [0, 1] value for the position of x.
212func (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

Callers 1

Calls 1

NormalizeMethod · 0.65

Tested by 1