Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/stumpy-dev/stumpy
/ z_norm
Function
z_norm
tests/naive.py:43–47 ·
view source on GitHub ↗
(a, axis=0)
Source
from the content-addressed store, hash-verified
41
42
43
def
z_norm(a, axis=0):
44
std = np.std(a, axis, keepdims=True)
45
std = np.where(std > 0, std, 1.0)
46
47
return
(a - np.mean(a, axis, keepdims=True)) / std
48
49
50
def
distance(a, b, axis=0, p=2.0):
Callers
1
distance_profile
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected