savitzky-golay
savitzky-golay copied to clipboard
crash when polynomial option is smaller than derivative
https://github.com/mljs/savitzky-golay/blob/master/src/index.js#L62
What should be done:
- throw a range error before ?
- automatically correct the options ?
I didn't realice that, thanks, and I think that the best option is to throw an error before