Commit da9d12cc authored by Joanne Hugé's avatar Joanne Hugé

Start a python script for measure analysis

parent 994401d8
import statistics
class Measures:
def __init__(self, board, linux_version, boot_params):
self.board = board
self.linux_version = linux_version
self.boot_params = boot_params
def add_results(self, cols, interval):
self.cols = cols
self.interval = interval
self.max = {name: max(cols[name]) for name in cols}
self.min = {name: min(cols[name]) for name in cols}
self.avg = {name: statistics.mean(cols[name]) for name in cols}
self.var = {name: statistics.variance(cols[name]) for name in cols}
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