MCPcopy
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
43def 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
50def distance(a, b, axis=0, p=2.0):

Callers 1

distance_profileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected