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

Method test_identical_samples

numpy/lib/tests/test_histograms.py:681–684  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

679 assert_array_equal(w_hist, 2 * hist)
680
681 def test_identical_samples(self):
682 x = np.zeros((10, 2), int)
683 hist, edges = histogramdd(x, bins=2)
684 assert_array_equal(edges[0], np.array([-0.5, 0., 0.5]))
685
686 def test_empty(self):
687 a, b = histogramdd([[], []], bins=([0, 1], [0, 1]))

Callers

nothing calls this directly

Calls 2

histogramddFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected