Faster sliding window statistics?
Afficher commentaires plus anciens
I use slidefun to estimate statistics such as max, min, or RMS within a sliding window applied to a time series. It is very useful, but it can be slow if there are a lot of data points. Is there a faster sliding window routine out there? I didn't see any obvious candidates in the File Exchange, but would like to know if I missed any.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 13 Oct 2016
2 votes
You can use these alternate functions. For mean, use conv(). For max, use imdilate(). For min use imerode(). Or the new moving stats functions Steve mentioned. They're all highly optimized. Whether they're faster than slidefun() is something you'll just have to check.
1 commentaire
K E
le 14 Oct 2016
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!