I have a strange behavior with this very simple code

```
import numpy as np
[y, binEdges] = np.histogram(x, xout)

```

where x and xout are numpy arrays (xout describes the edges of the bins that are equally spaced).

If I do

```
np.sum(y)

```

the value is not equal to the number of elements in x (x.shape), this value is a lot lesser then x.shape and I cannot figure out why. Is it a bug of np.histogram? If you need I can upload the x and xout numpy arrays but they are very long (x.shape is 19133 float64 and xout.shape is 1360 float64). Let me know if I did something wrong in the above code.