source: trunk/toolbox/decenred.m @ 23

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 
1function X = decenred(Z,moya,ecaa)
2% Fonction pour denormaliser la matrice Z
3% en lignes
4%load moya;load ecaa
5UN = ones(size(Z));
6Moy = moya;
7Moy = diag(Moy);
8Moy = UN * Moy;
9taille=size(Z,1);
10Ecart_type = diag(sqrt((taille-1)/taille)*ecaa);
11Ecart_type = UN * Ecart_type;
12 
13% Calcul de la matrice X des données centrées réduites
14X = (3./2.)* Z .*Ecart_type + Moy;
Note: See TracBrowser for help on using the repository browser.