Dynamic window for smoothdata

14 ビュー (過去 30 日間)
Matt Gaidica
Matt Gaidica 2021 年 3 月 16 日
コメント済み: Matt Gaidica 2021 年 3 月 16 日
Say I have a single stream of data (vector) that has sections where I want different filter window lengths. For instance, I want specify a vector of window lengths equal to the length of my data, how? I don't want to break up my data stream.
The only option I see is to somehow dynamically scale the data using interpolation and then use a smoothdata with a fixed window.
  3 件のコメント
Matt Gaidica
Matt Gaidica 2021 年 3 月 16 日
Yea I know how to smooth with N fixed. I was hoping I might not have to iterate through the entire array (this might be clumsy with large data sets). I would also like access to the gaussian method.
Matt Gaidica
Matt Gaidica 2021 年 3 月 16 日
For some more context, this has to do with changing day length over the year. Say sunrise-to-sunset = 1, else = 0 for all days of the year. If all days were half day/half night, I could use a fixed window of 1440 minutes and get a nice curve/oscillation. But imagine day length minimizes, to just small notch, then N=1440 is not really an accurate—my thoughts are I would want to decrease N based on day length here so my curve captures the shape of either long or short days in a similar manner.

サインインしてコメントする。

採用された回答

Matt Gaidica
Matt Gaidica 2021 年 3 月 16 日
In brief, I'm just running through progressively smaller filters and creating a smoothed binary gate depending on if the filter applies to a specific section of the data stream.
  2 件のコメント
Mathieu NOE
Mathieu NOE 2021 年 3 月 16 日
ok so topic closed !
all the best
Matt Gaidica
Matt Gaidica 2021 年 3 月 16 日
Thanks for taking a peek, I think it might be too niche for a general answer. Cheers!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMeasurements and Spatial Audio についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by