Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Yong
Yong le 23 Oct 2021
Commenté : Ive J le 24 Oct 2021
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 commentaire
Ive J
Ive J le 24 Oct 2021
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

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by