MCPcopy Create free account
hub / github.com/andeya/algorithm / Envelope

Function Envelope

mathutil/envelope.go:30–46  ·  view source on GitHub ↗

Envelope is an utility for defining simple curves using a small (usually) set of data points. Envelope returns a value defined by x, points and approximation. The value of x must be in [0,1) otherwise the result is undefined or the function may panic. Points are interpreted as dividing the [0,1) i

(x float64, points []float64, approximation Approximation)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestEnvelopeFunction · 0.85

Calls 1

FloorMethod · 0.80

Tested by 1

TestEnvelopeFunction · 0.68