summaryrefslogtreecommitdiff
path: root/code/perflow/flow_interarrival_tcp.R
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2018-11-22 19:57:21 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2018-11-22 19:57:21 +0000
commit62d885720ae1404dfd91ea4638d68ec57f3d4d8e (patch)
treec9ce01775b8e1b75ecda5efe3cdc6f4fae0add2a /code/perflow/flow_interarrival_tcp.R
parent3f282b6b5cee16f85109f140c4ac7c2c7c315698 (diff)
generated cdfs for inter-arrival times
Diffstat (limited to 'code/perflow/flow_interarrival_tcp.R')
-rw-r--r--code/perflow/flow_interarrival_tcp.R8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/perflow/flow_interarrival_tcp.R b/code/perflow/flow_interarrival_tcp.R
new file mode 100644
index 0000000..fdc09a6
--- /dev/null
+++ b/code/perflow/flow_interarrival_tcp.R
@@ -0,0 +1,8 @@
+tcp_times = read.csv(file="../../data/perflow/tcp_arrivel_time.csv", header=TRUE, sep=",")
+
+tcp_cdf = ecdf(tcp_times$time)
+
+plot(tcp_cdf, col="blue", main="CDF of inter-arrival times of TCP flows", xlab="time (s)", ylab="probability", xlim=c(0,0.002), ylim=c(0,1))
+dev.print(png, '../../plots/perflow/interarrival_tcp.png', width=500)
+
+#quit()