Hi,
I have a large dataset which I would like to do a backward average on to see how the average develops. A simple example is shown below. The first column is my raw data, the second column would be my average, computed with awk:
1 3
2 3.5
3 4
4 4.5
5 5
In excel this is equivalent to AVERAGE(Ai:A$imax}. My awk knowledge is pretty limited and I've been struggling with this for a while now. Any help would be appreciated
I have a large dataset which I would like to do a backward average on to see how the average develops. A simple example is shown below. The first column is my raw data, the second column would be my average, computed with awk:
1 3
2 3.5
3 4
4 4.5
5 5
In excel this is equivalent to AVERAGE(Ai:A$imax}. My awk knowledge is pretty limited and I've been struggling with this for a while now. Any help would be appreciated