You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each index i returned is such that bins[i-1] <= x < bins[i] if bins is monotonically increasing, or bins[i-1] > x >= bins[i] if bins is monotonically decreasing.
It would be convenient if numpy.digitize could be configured to interpret bins as the way that numpy.histogram produces them. Maybe change or replace the right argument to be interval=None|'left'|'right'|'leftclosed'|'rightclosed', where 'leftclosed' would behave as numpy.histogram does.
The text was updated successfully, but these errors were encountered:
numpy.histogram
produces bins such that:numpy.digitize
interprets the bin argument as:It would be convenient if
numpy.digitize
could be configured to interpret bins as the way thatnumpy.histogram
produces them. Maybe change or replace theright
argument to beinterval=None|'left'|'right'|'leftclosed'|'rightclosed'
, where'leftclosed'
would behave asnumpy.histogram
does.The text was updated successfully, but these errors were encountered: