annotate src/mz_7_dwcleaning.sci @ 4:50d9f45f2182 draft default tip

Deleted selected files
author jcb-mpl
date Thu, 12 May 2022 12:13:21 +0000
parents 245b2c2b3d75
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
1 function x_tr_mz3=mz_7_dwcleaning(x_tr_mz2,durbwats)
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
2
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
3
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
4 // cette fonction nettoie la matrice des EICs avec DW trop élevé
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
5
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
6 // x_tr_mz2: matrice EIC issue de la fonction mz_6_rescan_mz2
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
7
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
8 // durbwats: ex: dw=1.2
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
9
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
10
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
11
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
12 // nettoyage avec Durbin-Watson: très efficace
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
13 res_dw=mz_6bis_durbin_watson(x_tr_mz2);
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
14
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
15
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
16 tri=find(res_dw<durbwats);
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
17
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
18 if tri~=[] then
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
19 x_tr_mz3=x_tr_mz2(:,tri); // 1000*= rapide de sélectionner les bonnes colonnes qu'enlever les mauvaises
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
20 else
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
21 x_tr_mz3=x_tr_mz2;
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
22 end
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
23
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
24 // note: nettoyage avec eic_signal testé avec valeur=10000 -> inutile!
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
25
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
26
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
27
245b2c2b3d75 Uploaded
jcb-mpl
parents:
diff changeset
28 endfunction