필터 지우기
필터 지우기

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 CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by