MCPcopy Create free account
hub / github.com/numpy/numpy / center

Method center

numpy/lib/tests/test_function_base.py:1660–1661  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

1658
1659 def test_signature_center(self):
1660 def center(a):
1661 return a - a.mean()
1662
1663 f = vectorize(center, signature='(n)->(n)')
1664 r = f([[1, 3], [2, 4]])

Callers

nothing calls this directly

Calls 1

meanMethod · 0.45

Tested by

no test coverage detected