spiketools.utils.checks.check_bin_range

spiketools.utils.checks.check_bin_range(values, bin_area)[source]

Checks data values against given bin edges, warning if values exceed bin range.

Parameters:
values1d array

A set of values to check against bin edges.

bin_area1d array or list

The bin range area to check. Can be a two-item area range, or an array of bin edges.