source: proiecte/PPPP/ica/compare.m @ 138

Last change on this file since 138 was 138, checked in by (none), 14 years ago

PPPP - ica

File size: 310 bytes
Line 
1function [pc] =  compare(F, Ftest);
2
3trainClass = [1:3]';
4testClass = [1 2 3]';
5
6%We now compute percent correct:
7train_ex = F';
8test_ex = Ftest';
9pc = nnClassFn(train_ex,test_ex,trainClass,testClass);
10
11%pc is percent correct of first nearest neighbor.
12%rankmat gives the top 30 matches for each test image.
13
Note: See TracBrowser for help on using the repository browser.