repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Changes to attempt to silence bcc64x
[ACE_TAO.git]
/
TAO
/
orbsvcs
/
performance-tests
/
RTEvent
/
Colocated_Roundtrip
/
generate_stat.sh
blob
f0fc96aed6c40a9d41cec22cc38b12b4259d94d5
1
#/bin/sh
2
3
for
i
in
$
*;
do
4
echo
$i
5
cat
$i
|
6
awk
'BEGIN {
7
s1 = 0;
8
s2 = 0;
9
s3 = 0;
10
s4 = 0;
11
n = 0;
12
}
13
{
14
x =
$1
;
15
p =
$2
;
16
v = p * x;
17
s1 += v;
18
v *= x;
19
s2 += v;
20
v *= x;
21
s3 += v;
22
v *= x;
23
s4 += v;
24
}
25
END {
26
up0 = 1;
27
up1 = s1;
28
up2 = s2;
29
up3 = s3;
30
up4 = s4;
31
u1 = 0;
32
u2 = up2 - up1 * up1;
33
u3 = 2 * up1 * up1 * up1 - 3 * up1 * up2 + up3;
34
u4 = -3 * up1 * up1 * up1 * up1 + 6 * up1 * up1 * up2
35
-4 * up1 * up3 + up4;
36
37
skew = u3 / (u2 * sqrt(u2));
38
kurto = u4 / (u2 * u2) - 3;
39
printf("%f %f %f %f
\n
",
40
up1, u2, skew, kurto);
41
}'
42
done