Commit 144cb439 authored by Joanne Hugé's avatar Joanne Hugé

Merge branch 'measure-analysis' into packet-exchange

parents 40d22355 f9511abf
...@@ -356,11 +356,12 @@ class MeasureSet: ...@@ -356,11 +356,12 @@ class MeasureSet:
sum_prop = sum(prop) sum_prop = sum(prop)
avg = sum(map(lambda x: abs(x[0] - self.middle)*x[1], enumerate_prop)) / sum_prop avg = sum(map(lambda x: abs(x[0] - self.middle)*x[1], enumerate_prop)) / sum_prop
avg_centered = sum(map(lambda x: x[0]*x[1], enumerate_prop)) / sum_prop
var = 0 var = 0
for x, p in enumerate_prop: for x, p in enumerate_prop:
var += p * x**2 var += p * x**2
var /= sum_prop var /= sum_prop
var -= (avg + self.middle)**2 var -= avg_centered**2
self.avg.append(avg) self.avg.append(avg)
self.var.append(var) self.var.append(var)
......
...@@ -56,11 +56,11 @@ Min | Max | Avg ...@@ -56,11 +56,11 @@ Min | Max | Avg
**Common test metadata:** Board name: Slate, Linux kernel version: 4.19, Boot Parameters: isolcpus, ETF qdisc delta: 200us, Task priority: 99, Device and processor load: ssh, qdisc: pfast_fifo **Common test metadata:** Board name: Slate, Linux kernel version: 4.19, Boot Parameters: isolcpus, ETF qdisc delta: 200us, Task priority: 99, Device and processor load: ssh, qdisc: pfast_fifo
Metadata | Min | Max | Avg | Var Metadata | Min | Max | Avg | Var
--------------- | ----------- | ---------- | ---------- | ------------ --------------- | ----------- | ---------- | ---------- | ----------
**i, duration** | **jitter** | **jitter** | **jitter** | **jitter** **i, duration** | **jitter** | **jitter** | **jitter** | **jitter**
100000us, 0h17 | -139.0000us | 147.0000us | 10.4314us | -2817.6483us 100000us, 0h17 | -139.0000us | 147.0000us | 10.4314us | 252.7494us
1000us, 0h1 | -140.0000us | 142.0000us | 5.1925us | -1408.4847us 1000us, 0h1 | -140.0000us | 142.0000us | 5.1925us | 50.2992us
![alt text](graphs/packet_jitterjitter.png "packet_jitter Graph") ![alt text](graphs/packet_jitterjitter.png "packet_jitter Graph")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment