multiscale-array
Create multiple scales representation for an array (see scale-space for the concept). It is simplest form of convolution with resampling, where the upper level is perfectly 2 times less than the lower level, with each value made up of two values from the previous level. Similar to mipmaps, but 1d.
const multiscale = let data = Array1e7let scales = //recalculate scales for the data range, this is O(2N)scales