summaryrefslogtreecommitdiff
path: root/analysis/offline.R
diff options
context:
space:
mode:
authorLoïc Guégan <loic.guegan@mailbox.org>2025-09-23 13:43:11 +0200
committerLoïc Guégan <loic.guegan@mailbox.org>2025-09-23 13:43:11 +0200
commit296777a891a13df19052564f69c98325e9a0f50d (patch)
tree315d8a4c2adf2a925a00b8c273ac21dfa8de0aad /analysis/offline.R
parentcadd0d81e6a28b50757d4982b15e77eb8e7d0630 (diff)
Cleaning
Diffstat (limited to 'analysis/offline.R')
-rw-r--r--analysis/offline.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/analysis/offline.R b/analysis/offline.R
index 2b21bea..4dc991e 100644
--- a/analysis/offline.R
+++ b/analysis/offline.R
@@ -26,7 +26,7 @@ nsimkey=4
nsimulations=nseed*nwakeupfor*nwireless*nsimkey # Must be 3200
## Load data
-data=suppressMessages(read_csv("../CCGRID2022.csv"))%>%distinct() # Note that in the data experiment wireless=="lora",seed==1,wakeupfor==60,simkey=="baseline" is present 2 times in the CSV file
+data=suppressMessages(read_csv("../simulations/results/analysis/CCGRID2022.csv"))%>%distinct() # Note that in the data experiment wireless=="lora",seed==1,wakeupfor==60,simkey=="baseline" is present 2 times in the CSV file
data_seed=data%>%group_by(simkey,wireless,wakeupfor,seed)%>%summarize(energy=sum(energy),coverage=sum(nDataRcv))%>%
mutate(efficiency=energy/coverage)%>%
ungroup()