Algorithm 1:数据融合
Input: 数据集 Sample [ X h , X d , X w ] = t a r , shape ( Sample ) = ( T , N , F )
Output: Sample [ X ′ h , X ′ d , X ′ w ]
1. for i = 1 → i = S do
2. while Sample [ X h , X d , X w ] ≠ Φ do
3. if T w > 0 then
4. shape ( Sample [ X ′ w ] ) = ( 1 , N , F , T w ) Math_79#转置、扩展数组维度
5. Sample ← append Sample [ X ′ w ]
6. if T d > 0 then
7. shape ( Sample [ X ′ d ] ) = ( 1 , N , F , T d ) Math_84#转置、扩展数组维度
8. Sample ← append Sample [ X ′ d ]
9. if T h > 0 then
10. shape ( Sample [ X h ] ) = ( 1 , N , F , T h ) Math_89#转置、扩展数组维度
11. Sample ← append Sample [ X ′ h ]
12. shape ( t a r ′ ) = ( 1 , N , T ) Math_93#转置、扩展数组维度
13. Sample ← append t a r ′
14. end while
15. end if