How to detect abrupt changes in an array with condition?

I have an array of 45000 values. I need to detect the change points within a limited value from this array. Eg: let the values be 182 161 132 92 53 39 62 92 131 165 185. I need to find the change points from 132 to 131 in this series,ie. it should only detect the points which will recover to almost the same point where it deviates. How can i use ischange or findchangepts to find these points?

2 comentarios

Jan
Jan el 3 de Mayo de 2019
Why do you consider the points "from 132 to 131" as change points? What exactly does this mean: "points which will recover to almost the same point where it deviates"? What have you tried so far and which problems occur?
JRose
JRose el 4 de Mayo de 2019
I consider only that as an error for the dataset. My intention is to find the exact deviation intervals. Not all the changes occurring. If a change is occurring and it recovers to almost the same value, it is considered as an error. That needs to be detected.

Iniciar sesión para comentar.

Respuestas (1)

Asking for ischange on your small data set without any options indicates that every point other than the first is a change point.
x = [182 161 132 92 53 39 62 92 131 165 185];
ic = ischange(x);
[x; ic]
I would specify some of the options for ischange. For example, if I know I want to find at most three change points:
ic2 = ischange(x, 'MaxNumChanges', 3);
[x; ic2]
This identifies the 132-92 transition and the 92-131 transition as change points. Changing the METHOD input or specifying a 'Threshold' for what constitutes an "abrupt" change in the data may help isolate the specific significant changes you seek.

1 comentario

JRose
JRose el 4 de Mayo de 2019
My intention is to find the exact deviation intervals. Not all the changes occurring.

Iniciar sesión para comentar.

Categorías

Más información sobre Argument Definitions en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Mayo de 2019

Comentada:

el 4 de Mayo de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by