Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
da9d12cc
Commit
da9d12cc
authored
May 22, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start a python script for measure analysis
parent
994401d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
measure-analysis/measure-analysis.py
measure-analysis/measure-analysis.py
+21
-0
No files found.
measure-analysis/measure-analysis.py
0 → 100644
View file @
da9d12cc
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment