Relative Content

Tag Archive for numpyscipynumpy-slicing

Creating a reduced-length resampling of a numpy array

I have a numpy array of a certain length, and want to produce a much shorter array, where each value in the shorter array is aggregated based on a bin of values in the original array. In my specific case, this happens to be an audio signal and the function I’m applying is a max over each bin.