mirror of
https://gitlab.com/manzerbredes/loosely-coupled-dss.git
synced 2025-04-05 11:06:25 +02:00
Add R analysis
This commit is contained in:
parent
159d8e123a
commit
69e8818642
3 changed files with 31 additions and 21 deletions
10
results/analysis.R
Normal file
10
results/analysis.R
Normal file
|
@ -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)
|
|
@ -29,7 +29,7 @@ hint="false"
|
|||
poff=0
|
||||
pon=1
|
||||
prx=1
|
||||
ptx=5
|
||||
ptx=2
|
||||
datasize=1
|
||||
simkey=0
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
Loading…
Add table
Reference in a new issue