sasdata.data_util.interval module¶
- class sasdata.data_util.interval.IntervalType(*values)¶
Bases:
Enum- CLOSED = 2¶
- HALF_OPEN = 1¶
- __doc__ = None¶
- __module__ = 'sasdata.data_util.interval'¶
- weights_for_interval(array, l_bound, u_bound)¶
Weight coordinate data by position relative to a specified interval.
- Parameters:
array – the array for which the weights are calculated
l_bound – value defining the lower limit of the region of interest
u_bound – value defining the upper limit of the region of interest
If and when fractional binning is implemented (ask Lucas), this function will be changed so that instead of outputting zeros and ones, it gives fractional values instead. These will depend on how close the array value is to being within the interval defined.