MATLAB POLYSPACE RELEASE NOTES Instrukcja Użytkownika Strona 175

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 240
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 174
Preprocessing Data
sigma3 = std(c3); % Da ta standard deviati on
hist(c3) % Plot histogram
hold on
plot([mu3 mu3],[0 N],'r','LineWidt h',2 ) % Mean
X = repmat(mu3+(1:2)*s igma3,2,1);
Y = repmat([0;N],1,2);
plot(X,Y,'g','LineWidth',2) % Standard deviations
legend('Data','Mean','Stds')
hold off
The plot shows th at some of the dat a are more th an two stand ard deviation s
above the m ean. If you identify these data as errors (not features), replace
them with
NaN values as follows:
outliers = (c3 - mu3) > 2*sigma3;
c3m=c3;%Copyc3toc3m
5-5
Przeglądanie stron 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 239 240

Komentarze do niniejszej Instrukcji

Brak uwag