AnBowell / whittaker-eilers

A sparse matrix implementation of Whittaker-Eilers smoothing and interpolation
https://crates.io/crates/whittaker-eilers
30 stars 2 forks source link

Maybe add batch processing? #6

Open ikaryss opened 2 months ago

ikaryss commented 2 months ago

Thank you for developing this package! I am currently using it with Python and encountered a limitation when trying to process a batch of signals. The whittaker_smoother.smooth() function only accepts 1-D arrays. Maybe add such functionality to process (batch_size, signal_len) input?

AnBowell commented 2 months ago

I like the idea!

I think if I were to do this, I'd end up adding some form of multithreading to it too as otherwise it would just be the equivalent of looping over the arrays. I'll have a think about how it could be structured!