Added script to run the factor experiments.
authorJohannes Middeke <j-middeke@t-online.de>
Tue, 10 May 2016 17:57:22 +0000 (13:57 -0400)
committerJohannes Middeke <j-middeke@t-online.de>
Tue, 10 May 2016 17:57:22 +0000 (13:57 -0400)
factors.sh [new file with mode: 0644]

diff --git a/factors.sh b/factors.sh
new file mode 100644 (file)
index 0000000..3847de1
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# N counts the number of samples generated so far. We do 20 samples in
+# each iteration and we already have 20 from the test run. Maximale
+# sample number is 300.
+
+for N in `seq 10 10 300`
+do
+    # Run experiment
+    echo > DATA.degrees.$N
+    for I in `seq 5 5 80`
+    do
+       ./test.native --factors --size $I --times 10 \
+                     >> DATA.degrees.$N
+    done
+
+    # Clean up results
+    echo 'let data = [' \
+        > dataDEGREES.ml
+
+    cat DATA.* \
+       | sed 's/[a-z =]//g' \
+       | cut -d, -f1,3,5 \
+       | sed 's/\.$/;/' \
+             >> dataDEGREES.ml
+
+    echo ']' \
+        >> dataDEGREES.ml
+
+    # Generate an deploy HTML
+    ocaml makeHTMLdegrees.ml --samples $N \
+         > BareissTMP.html
+
+    scp Bareiss*.html jmiddeke@www:/home/www/people/jmiddeke/
+done
+