-
Notifications
You must be signed in to change notification settings - Fork 1
/
Combine_ALL_Factors.m
35 lines (25 loc) · 1.14 KB
/
Combine_ALL_Factors.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Function to Combine Singular Factors
function [Combined_Factors]=Combine_ALL_Factors(Singular_Factors_Coupled,Singular_Factors_Individuals)
%Input
% Singular_Factors_Individuals : Singular Factors Obtained through Coupled Tensor Factorizations
% Singular_Factors_Coupled : Singular Factors Obtained through Individual Tensor Factorizations
%
%
% Output
% Combined_Factors : Combined Coupled and Individual Singular Factors
%
%
% Author : Sunny Verma ([email protected])
% Last_Update : 25/08/2016
% %
Iter=size(Singular_Factors_Individuals,1);
Combined_Factors=Singular_Factors_Coupled;
for i=1:Iter
Coupled_Row_Projections=Singular_Factors_Coupled{i,2};
Coupled_Col_Projections=Singular_Factors_Coupled{i,3};
Individual_Row_Projections=Singular_Factors_Individuals{i,2};
Individual_Col_Projections=Singular_Factors_Individuals{i,3};
Combined_Factors{i,2}=[Coupled_Row_Projections Individual_Row_Projections];
Combined_Factors{i,3}=[Coupled_Col_Projections Individual_Col_Projections];
end
end