diff options
Diffstat (limited to 'SD-VBS/benchmarks/svm/src/matlab/usps_read_partial.m')
-rw-r--r-- | SD-VBS/benchmarks/svm/src/matlab/usps_read_partial.m | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/SD-VBS/benchmarks/svm/src/matlab/usps_read_partial.m b/SD-VBS/benchmarks/svm/src/matlab/usps_read_partial.m deleted file mode 100644 index fab2a8f..0000000 --- a/SD-VBS/benchmarks/svm/src/matlab/usps_read_partial.m +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | function ret=usps_read_partial(datacell_1, datacell_2, idx, opt,dim, Iterations) | ||
2 | |||
3 | X=datacell_1(1:dim,:); | ||
4 | if (opt == 1) | ||
5 | for i=2:Iterations | ||
6 | temp = datacell_2(1:dim,:); | ||
7 | X = [X;temp]; | ||
8 | end | ||
9 | else | ||
10 | for i=1:Iterations | ||
11 | if idx==0 | ||
12 | ADD=zeros(dim,1)+i; | ||
13 | else | ||
14 | if i~=idx | ||
15 | ADD=ones(dim,1)*-1; | ||
16 | else | ||
17 | ADD=ones(dim,1); | ||
18 | end | ||
19 | end | ||
20 | if i==1 | ||
21 | X=ADD; | ||
22 | else | ||
23 | X=[X; ADD]; | ||
24 | end | ||
25 | end | ||
26 | end | ||
27 | ret = X; | ||
28 | |||