source: distools/readchicken.m @ 10

Last change on this file since 10 was 10, checked in by bduin, 14 years ago
File size: 548 bytes
Line 
1function a = readchicken(norm,cost,dirname)
2if nargin < 3
3    dirname = ['/data/pr/projects/dissim/data/chickenpieces/chickenpieces_norm' num2str(norm) '.0'];
4                if ispc
5                        dirname = ['s:\root' dirname];
6                end
7end
8if nargin < 2
9    dir(dirname)
10    a = [];
11    return
12end
13name = ['chickenpieces_norm' num2str(norm) '.0_AngleCostFunction' num2str(cost) '.0.dm'];
14a = prtbunke(fullfile(dirname,name));
15if length(a)==1 & a==-1
16    return
17end
18a = setprior(a,getprior(a,0));
19%a = min(a,a');      % starting from exp4
20a = (a + a')/2;
Note: See TracBrowser for help on using the repository browser.