我想将 N 个 d 维数组列表连接成一个大数组列表。我做了以下工作:
{
Arraylist<Double> cFeature = new Arraylist<Double>();
for(int i =0 ; i < n; i++){
ArrayList<Double> arrList = new ArrayList<Double>();
arrList = FeatureMatrix.get(i);
cFeature.addAll(arrList);
}
return cFeature;
}
但这并没有返回我连接的特征向量。可能是什么原因?
我有以下类型的矩阵
1 2 3 4
4 5 6 7
9 4 5 2
我想返回类似的东西:
12344567, 45679452 etc
EDIT[矩阵一排],矩阵的维数为50
[-1.4707351089135285, -2.396807707665656, -0.9225858560474335, -0.552093667789784, 0.6492206869123566, 1.1347653279780474, 0.18599226559979623, -0.3040490372134513, -0.8661743997164002, 1.2990217001062885, -1.4689261255216413, -0.6175058675322327, 0.0019875740898560707, 3.187991109660048, 0.9793588130569899, 1.88726260031087, 1.263110196592273, 0.10270882950413489, -0.33850097448844163, 0.26780865103769547, -0.28117099016766645, -0.015511886681809741, -0.7906057240014217, 0.1796874905794462, 0.9327631100459427, 0.5419684468033518, 1.3670537985364393, -1.0381888770019032, 1.0975151287297011, 0.024367745998744996, -0.25780912155025204, -1.862325174655491, -0.611104255824939, -0.5746070435381269, -1.2218773341433158, 0.2220916817954159, 0.4641455500389115, -0.43253367269335635, -0.5380163044326588, 0.685592907063921, -0.6191939669845238, -1.2275198581496152, 0.13270110767423787, -0.1614948461888469, 1.5717904793822337, -0.2826323802880358, -0.4716922630198008, -0.2881374794211655, 0.8609910302314909, 1.1749707572533885]