-
Notifications
You must be signed in to change notification settings - Fork 0
/
plotPathManipulation.sh
executable file
·78 lines (47 loc) · 1.73 KB
/
plotPathManipulation.sh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
function printArray {
for item in ${array[*]}
do
printf "%s\n" $item
done
}
# noManipulation
nameStock=$"noManipulation"
array=(1 2 3 4 5 6 7 8 9 10 11)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
# swapMutate
nameStock=$"swapMutate"
array=(1 2 3 10 5 6 7 8 9 4 11)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
# listSwapMutate
nameStock=$"listSwapMutate"
array=(1 2 9 10 6 7 8 3 4 5 11)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
# revMutate
nameStock=$"revMutate"
array=(1 2 3 4 8 7 6 5 9 10 11)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
# blockSwapMutate
nameStock=$"blockSwapMutate"
array=(9 10 11 1 2 3 4 5 6 7 8)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
# shuffelMutate
nameStock=$"shuffelMutate"
array=(1 2 3 6 8 5 7 4 9 10 11)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
# shiftMutate
nameStock=$"shiftMutate"
array=(1 2 4 5 6 3 7 8 9 10 11)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
# completeShiftMutate
nameStock=$"completeShiftMutate"
array=(11 1 2 3 4 5 6 7 8 9 10)
printArray $array > tmp.txt
gnuplot -e "dataName ='tmp.txt'; pdfName='Lyx/Pictures/Generated/${nameStock}Hist.pdf'" plotOrder.plt
rm tmp.txt