export LD_LIBRARY_PATH=../lib/

name1=mer_IRP
name2=mer_IAP
name3=mer_IRE
name4=mer_IAE
name5=mer_OR
name6=mer_OA

echo "Computing mer IRP"
java -d64 -Xms400m -Xmx4G  -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=300,x=0.001 -dectree,search=1800,learn=0,onlyTarget,multiLearn,verify=1000,export=../output/csv/$name1 > ../output/txt/$name1.txt
column -s "," -t < ../output/csv/$name1.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer IAP"
java -d64 -Xms400m -Xmx4G   -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=300,x=0.001 -dectree,search=1800,learn=0,multiLearn,verify=1000,export=../output/csv/$name2 > ../output/txt/$name2.txt
column -s "," -t < ../output/csv/$name2.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer IRE"
java -d64 -Xms400m -Xmx4G   -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=300,x=0.001 -dectree,search=1800,learn=0,onlyTarget,verify=1000,export=../output/csv/$name3 > ../output/txt/$name3.txt
column -s "," -t < ../output/csv/$name3.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer IAE"
java -d64 -Xms400m -Xmx4G   -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=300,x=0.001 -dectree,search=1800,learn=0,verify=1000,export=../output/csv/$name4 > ../output/txt/$name4.txt
column -s "," -t < ../output/csv/$name4.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer OR"
java -d64 -Xms400m -Xmx4G   -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=300,x=0.001 -dectree,search=2,learn=2,verify=1000,onlyTarget,export=../output/csv/$name5 > ../output/txt/$name5.txt
column -s "," -t < ../output/csv/$name5.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer OA"
java -d64 -Xms400m -Xmx4G   -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=300,x=0.001 -dectree,search=2,learn=2,verify=1000,export=../output/csv/$name6 > ../output/txt/$name6.txt
column -s "," -t < ../output/csv/$name6.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'
