MCPcopy
hub / github.com/numpy/numpy / test_identical_samples

Method test_identical_samples

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

Source from the content-addressed store, hash-verified

718 assert_array_equal(w_hist, 2 * hist)
719
720 def test_identical_samples(self):
721 x = np.zeros((10, 2), int)
722 hist, edges = histogramdd(x, bins=2)
723 assert_array_equal(edges[0], np.array([-0.5, 0., 0.5]))
724
725 def test_empty(self):
726 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