GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — eigenfaces/ACPdim3.m at master · roza/eigenfaces

Expand file tree

/

ACPdim3.m

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
28 lines (23 loc) · 581 Bytes
/

ACPdim3.m

Copy path

File metadata and controls

28 lines (23 loc) · 581 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
1;
function alea=alea()
alea = 2*(rand() - 0.5);
endfunction
clf; n=100; a=10; ax=0.1;
for i=1:n
taille=a*alea();
V(1,i)= taille*(1+ax*alea());
V(2,i)= taille*(-1 +ax*alea());
V(3,i)= taille*(ax*alea());
endfor
Moy = sum(V')'/n;
axis([ -a a -a a -a a ])
hold on
V=V-repmat(Moy,1,n); A=V*V';
[P,D]=eig(A)
plot3(V(1,:),V(2,:),V(3,:),"+")
Vp1 = [zeros(3,1) P(:,3)]'
Vp2 = [zeros(3,1) P(:,2)]'
Vp3 = [zeros(3,1) P(:,1)]'
plot3(10*Vp1(:,1), 10*Vp1(:,2), 10*Vp1(:,3), "g")
plot3(10*Vp2(:,1), 10*Vp2(:,2), 10*Vp2(:,3), "r")
plot3(10*Vp3(:,1), 10*Vp3(:,2), 10*Vp3(:,3), "y")
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.