diff --git a/results/analysis.R b/results/analysis.R new file mode 100644 index 0000000..2bb7b1d --- /dev/null +++ b/results/analysis.R @@ -0,0 +1,10 @@ +library("tidyverse") + + +data=read_csv("results.csv") + +final=data%>%group_by(simkey)%>%summarize(energy=mean(energy),sd=sd(energy)) + +ggplot(final,aes(x=simkey,y=energy))+geom_bar(stat="identity")+ + xlab("Scenario")+ylab("Energy (J)")+ + geom_errorbar(aes(ymin=energy-sd, ymax=energy+sd),width=.2,size=1.5) diff --git a/results/paper.sh b/results/paper.sh index e039283..f2f40af 100755 --- a/results/paper.sh +++ b/results/paper.sh @@ -29,7 +29,7 @@ hint="false" poff=0 pon=1 prx=1 -ptx=5 +ptx=2 datasize=1 simkey=0 diff --git a/results/results.csv b/results/results.csv index 03eed33..dbfdd2a 100644 --- a/results/results.csv +++ b/results/results.csv @@ -1,24 +1,24 @@ node,nWakeUp,nDataRcv,nSendFail,nRcvFail,simkey,seed,energy -on0,1,0,1,0,baseline,1,450.000000 -on0,1,0,1,0,baseline,2,450.000000 -on0,1,0,1,0,baseline,3,450.000000 -on0,1,0,1,0,baseline,4,450.000000 -on0,1,0,1,0,baseline,5,450.000000 -on0,1,0,1,0,baseline,6,450.000000 -on0,1,0,1,0,baseline,7,450.000000 -on0,1,0,1,0,baseline,8,450.000000 -on0,1,0,1,0,baseline,9,450.000000 -on0,1,0,1,0,baseline,10,450.000000 -on0,1,0,1,0,hint,1,450.000000 -on0,1,0,1,0,hint,2,450.000000 -on0,1,0,1,0,hint,3,450.000000 -on0,1,0,1,0,hint,4,450.000000 -on0,1,0,1,0,hint,5,450.000000 -on0,1,0,1,0,hint,6,450.000000 -on0,1,0,1,0,hint,7,450.000000 -on0,1,0,1,0,hint,8,450.000000 -on0,1,0,1,0,hint,9,450.000000 -on0,1,0,1,0,hint,10,450.000000 +on0,1,0,1,0,baseline,1,180.000000 +on0,1,0,1,0,baseline,2,180.000000 +on0,1,0,1,0,baseline,3,180.000000 +on0,1,0,1,0,baseline,4,180.000000 +on0,1,0,1,0,baseline,5,180.000000 +on0,1,0,1,0,baseline,6,180.000000 +on0,1,0,1,0,baseline,7,180.000000 +on0,1,0,1,0,baseline,8,180.000000 +on0,1,0,1,0,baseline,9,180.000000 +on0,1,0,1,0,baseline,10,180.000000 +on0,1,0,1,0,hint,1,180.000000 +on0,1,0,1,0,hint,2,180.000000 +on0,1,0,1,0,hint,3,180.000000 +on0,1,0,1,0,hint,4,180.000000 +on0,1,0,1,0,hint,5,180.000000 +on0,1,0,1,0,hint,6,180.000000 +on0,1,0,1,0,hint,7,180.000000 +on0,1,0,1,0,hint,8,180.000000 +on0,1,0,1,0,hint,9,180.000000 +on0,1,0,1,0,hint,10,180.000000 on0,1,0,1,0,extended,1,90.000000 on0,1,0,1,0,extended,2,90.000000 on0,1,0,1,0,extended,3,90.000000