フィルターのクリア

How to find the change location is a series of data points

2 ビュー (過去 30 日間)
Yong
Yong 2021 年 10 月 23 日
コメント済み: Ive J 2021 年 10 月 24 日
I have sequences of data points such as the following:
x = [100.0 13.2 63.6 5.2 0.6 0.2 0.2 0.4 0.2 0.2 0.2 0 0.2 0 0]
I need to find the change point of the sequence. By examing the data sequence, it should be at location 5. However, the following command returns the change point location is 14:
idx = findchangepts(x, 'Statistic', 'rms')
My question: which is the better way to segment data points in a sequence like this?
Thanks a lot in advance!
  1 件のコメント
Ive J
Ive J 2021 年 10 月 24 日
There is no magic way to determine this point of interest, because it heavily depends on lots of variables (e.g. your research question, the nature of data, etc). findchangepts shows the point (assuming only one such a point exsits) at which there is a change based on the criteria defined in Statistic. You can also set MinDistance (by default it's 2 for rms).
x = [100.0 13.2 63.6 5.2 0.6 0.2 0.2 0.4 0.2 0.2 0.2 0 0.2 0 0];
idx = findchangepts(x, 'Statistic', 'rms', 'MinDistance', 3)
idx = 5

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by