savepoint
This commit is contained in:
26
dokumentation/evolution1d/R_mean_med_sigma.sh
Executable file
26
dokumentation/evolution1d/R_mean_med_sigma.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# regularity,variability,improvement,"Evolution error",steps
|
||||
# 6.57581e-05,0.00592209,0.622392,113.016,2368
|
||||
|
||||
if [[ -f "$2" ]]; then
|
||||
|
||||
R -q --slave --vanilla <<EOF
|
||||
print("================ Analyzing $2")
|
||||
#library(Hmisc)
|
||||
DF=as.matrix(read.csv("$2",header=TRUE))
|
||||
print("Mean:")
|
||||
mean(DF[,$1])
|
||||
print("Median:")
|
||||
median(DF[,$1])
|
||||
print("Sigma:")
|
||||
sd(DF[,$1])
|
||||
print("Range:")
|
||||
range(DF[,$1])
|
||||
EOF
|
||||
|
||||
else
|
||||
|
||||
echo "Usage: $0 <column> <Filename.csv>"
|
||||
fi
|
||||
|
@ -1,4 +1,4 @@
|
||||
"5x5","7x4","4x7","7x7","10x10"
|
||||
"5x5","4x7","7x4","7x7","10x10"
|
||||
218.554,280.917,211.096,126.241,15.0742
|
||||
215.888,315.729,233.828,110.962,19.0281
|
||||
274.375,264.639,205.276,125.853,11.8948
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Reference in New Issue
Block a user