export LD_LIBRARY_PATH=../lib/

name1=zeroconf_IRP
name2=zeroconf_IAP
name3=zeroconf_IRE
name4=zeroconf_IAE
name5=zeroconf_OR
name6=zeroconf_OA

echo "Computing zeroconf IRP"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/zeroconf/zeroconf.nm ../prism-examples/zeroconf/zeroconf.pctl -property 2 -const reset=false,N=1000,K=2,err=0.1 -dectree,search,verify=10000,train=10000,learn=0,onlyTarget,multiLearn,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 zeroconf IAP"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/zeroconf/zeroconf.nm ../prism-examples/zeroconf/zeroconf.pctl -property 2 -const reset=false,N=1000,K=2,err=0.1 -dectree,search,verify=10000,train=10000,learn=0,multiLearn,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 zeroconf IRE"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/zeroconf/zeroconf.nm ../prism-examples/zeroconf/zeroconf.pctl -property 2 -const reset=false,N=1000,K=2,err=0.1 -dectree,search,verify=10000,train=10000,learn=0,onlyTarget,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 zeroconf IAE"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/zeroconf/zeroconf.nm ../prism-examples/zeroconf/zeroconf.pctl -property 2 -const reset=false,N=1000,K=2,err=0.1 -dectree,search,verify=10000,train=10000,learn=0,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 zeroconf OR"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/zeroconf/zeroconf.nm ../prism-examples/zeroconf/zeroconf.pctl -property 2 -const reset=false,N=1000,K=2,err=0.1 -dectree,search,verify=10000,train=10000,learn=2,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 zeroconf OA"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/zeroconf/zeroconf.nm ../prism-examples/zeroconf/zeroconf.pctl -property 2 -const reset=false,N=1000,K=2,err=0.1 -dectree,search,verify=10000,train=10000,learn=2,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 }'
