source:
proiecte/PPPP/ica/compare.m
@
138
Last change on this file since 138 was 138, checked in by , 14 years ago | |
---|---|
File size: 310 bytes |
Rev | Line | |
---|---|---|
[138] | 1 | function [pc] = compare(F, Ftest); |
2 | ||
3 | trainClass = [1:3]'; | |
4 | testClass = [1 2 3]'; | |
5 | ||
6 | %We now compute percent correct: | |
7 | train_ex = F'; | |
8 | test_ex = Ftest'; | |
9 | pc = 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.