Last change
on this file since 23 was
4,
checked in by pinsard, 15 years ago
|
dealing with CR/LF and encoding
|
-
Property svn:executable set to
*
|
File size:
364 bytes
|
Line | |
---|
1 | function X = decenred(Z,moya,ecaa) |
---|
2 | % Fonction pour denormaliser la matrice Z |
---|
3 | % en lignes |
---|
4 | %load moya;load ecaa |
---|
5 | UN = ones(size(Z)); |
---|
6 | Moy = moya; |
---|
7 | Moy = diag(Moy); |
---|
8 | Moy = UN * Moy; |
---|
9 | taille=size(Z,1); |
---|
10 | Ecart_type = diag(sqrt((taille-1)/taille)*ecaa); |
---|
11 | Ecart_type = UN * Ecart_type; |
---|
12 | |
---|
13 | % Calcul de la matrice X des données centrées réduites |
---|
14 | X = (3./2.)* Z .*Ecart_type + Moy; |
---|
Note: See
TracBrowser
for help on using the repository browser.