From 62d885720ae1404dfd91ea4638d68ec57f3d4d8e Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Thu, 22 Nov 2018 14:57:21 -0500 Subject: generated cdfs for inter-arrival times --- code/perflow/flow_interarrival_all.R | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 code/perflow/flow_interarrival_all.R (limited to 'code/perflow/flow_interarrival_all.R') diff --git a/code/perflow/flow_interarrival_all.R b/code/perflow/flow_interarrival_all.R new file mode 100644 index 0000000..a10e7a2 --- /dev/null +++ b/code/perflow/flow_interarrival_all.R @@ -0,0 +1,10 @@ +all_times = read.csv(file="../../data/perflow/all_arrivel_time.csv", header=TRUE, sep=",") +udp_times = read.csv(file="../../data/perflow/udp_arrivel_time.csv", header=TRUE, sep=",") + +all_cdf = ecdf(all_times$time) +udp_cdf = ecdf(udp_times$time) + +plot(all_cdf, col="red", main="CDF of inter-arrival times of ALL flows", xlab="time (s)", ylab="probability", xlim=c(0,0.1), ylim=c(0,1)) +dev.print(png, '../../plots/perflow/interarrival_all.png', width=500) + +#quit() -- cgit v1.2.3