loupe.rebin# class loupe.rebin(x, bin_shape)[source]# Rebin an array. Parameters: x (array_like) – Input array bin_shape (tuple) – The shape of the bin. Each dimension must divide evenly into the corresponsing dimension of x. Returns: out – Rebinned array Return type: Function