edu icon indicating copy to clipboard operation
edu copied to clipboard

Make a better test for the array_is_pmf question

Open charlesfrye opened this issue 3 years ago • 0 comments

Right now, doesn't appropriately test whether there are values above 1 or below 0 because the examples don't add up to 1, which is what most folks test for.

np.array([-1, 2]) and/or np.array([-0.5, 1.1, 0.2, 0.2]) would do it.

charlesfrye avatar Jul 02 '21 06:07 charlesfrye