Average in Eq.
Code used in calcular_media.sh to take the equilibrium densities from every sample.
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
36
37
# Comments:
# plota densidade media no equilibrio pra uma evoluçao temporal
# se plotar com virgular escrever no terminal: export LC_NUMERIC="en_US.UTF-8"
BEGIN {
#printf export LC_NUMERIC="en_US.UTF-8"
i=0;
}
{
if ($1 >=70000)
{
for(j=1;j<=NF;j++)
{
media[j] += $j;
#print media[j]
}
++i;
}
}
END {
for(j=2;j<=NF;j++)
{
#media[j] += $j;
printf "%s ",media[j]/i
#print media[j]/i
} printf "\n"
}
This post is licensed under CC BY 4.0 by the author.