Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
75
def
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
82
def
interp_array_list(arr_list,interp_val=10):
Callers
1
interp_array_list
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected