-2

以下のような各ファイル名を持つ合計 64 個のファイルがあります。

diffusion-isomalto-thermo1.dat_x.xmgr
diffusion-isomalto-thermo2.dat_x.xmgr
diffusion-isomalto-thermo3.dat_x.xmgr
diffusion-isomalto-thermo4.dat_x.xmgr
.
.
diffusion-isomalto-thermo64.dat_x.xmgr

各ファイルには、次の形式の 2 列のデータが含まれています。

 5.000     1.047
10.000     1.107
15.000     1.211
20.000     1.083
25.000     1.166
30.000     1.368
35.000     1.179
40.000     1.307
45.000     0.985
50.000     0.954

50,000 行のデータが含まれています。

私が欲しいのは、すべてのファイル(64ファイル)の最初の行の2番目の列の平均であり、次はすべてのファイルの2番目の行の2番目の列の平均です。

これに対する良いアプローチは何ですか?

4

1 に答える 1