narrowing down data sample

3 visualizaciones (últimos 30 días)
Sehoon Chang
Sehoon Chang el 8 de Abr. de 2020
Comentada: Sehoon Chang el 8 de Abr. de 2020
Hi all,
I have set restrictions to sample the outlier data and wish to narrow down outliers samples.
Three restrictions that i have set are:
  1. zscore above 3
  2. W(idx) above 15
  3. three consecutive W(idx) having same value.
Values that meet all three resitrictions shall be classified as outliers.
idx is the time variable and the W is the result.
I came up with this equation, but the result of what i wish to get is only upto the second restriction right.
please help me out how to restructure the last restriction correctly.
Thanks all.
stdDev = std(W(idx))
meanValue = mean(W(idx))
zFactor = 3
outliers = find((abs(W(idx)-meanValue) > (zFactor * stdDev)) & (W(idx) > 15) & (W(idx) == W(idx-1) == W(idx-2) == (W(idx-3))))
  2 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 8 de Abr. de 2020
It might works, if you check the conecutives same values in fifferent assigment (line). Later you can easily combine them.
There the multiple answered threads to check the cosecutivs numbers, you may look at diff function
Sehoon Chang
Sehoon Chang el 8 de Abr. de 2020
thanks!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by