MCPcopy
hub / github.com/ContextLab/hypertools / interp_array

Function interp_array

hypertools/_shared/helpers.py:75–79  ·  view source on GitHub ↗
(arr,interp_val=10)

Source from the content-addressed store, hash-verified

73
74
75def interp_array(arr,interp_val=10):
76 x=np.arange(0, len(arr), 1)
77 xx=np.arange(0, len(arr)-1, 1/interp_val)
78 q=pchip(x,arr)
79 return q(xx)
80
81
82def interp_array_list(arr_list,interp_val=10):

Callers 1

interp_array_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected