source:
proiecte/PPPP/ica/spherex.m
@
110
Last change on this file since 110 was 94, checked in by , 14 years ago | |
---|---|
File size: 278 bytes |
Line | |
---|---|
1 | % SPHEREX - spheres the training vector x. |
2 | % Requires x, P, to be predefined, and defines mx, c, wz. |
3 | |
4 | fprintf('\nsubtracting mean\n'); |
5 | mx=mean(x'); |
6 | x=x-(ones(P,1)*mx)'; |
7 | fprintf('calculating whitening filter\n'); |
8 | c=cov(x'); |
9 | wz=2*inv(sqrtm(c)); |
10 | fprintf('whitening\n'); |
11 | x=wz*x; |
Note: See TracBrowser
for help on using the repository browser.