Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Yong
Yong el 23 de Oct. de 2021
Comentada: Ive J el 24 de Oct. de 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 comentario
Ive J
Ive J el 24 de Oct. de 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

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by