MCPcopy Create free account
hub / github.com/cogentcore/core / Normalize

Method Normalize

plot/axis.go:156–158  ·  view source on GitHub ↗

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

(min, max, x float32)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

NormalizeMethod · 0.65

Tested by

no test coverage detected