https://github.com/scijs/fourier-transform/issues/11