Diff of /Xsys_MT_cal.m [000000] .. [d8e26d]

Switch to unified view

a b/Xsys_MT_cal.m
1
function [Xsys_MT] = Xsys_MT_cal(Xs, ys)
2
%Calculate Xty for each task and arrange them according to both the orders
3
%of the features and the tasks
4
5
6
Xsys_MT = zeros(size(Xs{1},2)*length(Xs),1);
7
idx_row = (0:size(Xs{1},2)-1)*length(Xs)+1;
8
for i = 1 : length(Xs)
9
    Xty = (Xs{i})'*(ys{i});
10
    Xsys_MT(idx_row,1) = Xty;
11
    idx_row = idx_row + 1;
12
end
13
14
end