MATLAB POLYSPACE RELEASE NOTES Manuel d'utilisateur Page 175

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 240
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 239 240

Commentaires sur ces manuels

Pas de commentaire