MCPcopy Index your code
hub / github.com/stumpy-dev/stumpy / naive_iac

Function naive_iac

tests/test_floss.py:24–32  ·  view source on GitHub ↗
(width)

Source from the content-addressed store, hash-verified

22
23
24def naive_iac(width):
25 height = width / 2
26 a = height / ((width / 2) * (width / 2))
27 b = height
28 c = width / 2
29 x = np.arange(width)
30 y = -(a * (x - c) * (x - c)) + b
31
32 return y
33
34
35def naive_cac(I, L, excl_factor, custom_iac=None):

Callers 3

naive_cacFunction · 0.85
test_cac_custom_iacFunction · 0.85
test_flussFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected