summaryrefslogtreecommitdiff
path: root/code/perflow
diff options
context:
space:
mode:
authorArthur Pavlov <arthur.pavlovs@mail.utoronto.ca>2018-11-22 17:39:12 +0000
committerArthur Pavlov <arthur.pavlovs@mail.utoronto.ca>2018-11-22 17:39:12 +0000
commit28c7f11379a207bf9fe4a48ccfc6455f15b2e428 (patch)
treec0429eb11906ef75ec31477edbad0e702f6f5d64 /code/perflow
parent3d310c7630d241688172f915151cee58646ff399 (diff)
parent145b0bfc405968a9e43f65a0f81dda32d6dacdc4 (diff)
Merge branch 'master' of https://github.com/kdam0/project458
Diffstat (limited to 'code/perflow')
-rw-r--r--code/perflow/flow_interarrival.R8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/perflow/flow_interarrival.R b/code/perflow/flow_interarrival.R
new file mode 100644
index 0000000..5ef69ba
--- /dev/null
+++ b/code/perflow/flow_interarrival.R
@@ -0,0 +1,8 @@
+tcp_times = read.csv(file="../../data/perpacket/tcp_arrivel_time.csv", header=TRUE, sep=",")
+
+tcp_times_cdf = ecdf(tcp_times$time)
+
+plot(tcp_times_cdf, col="black", main="CDF of TCP inter-arrival time of TCP flows", xlab="time (s)", ylab="probability")
+dev.print(png, '../../plots/perflow/interarrival.png', width=500)
+
+#quit()