Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
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
1
Merge Requests
1
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
osie
Commits
adbb6f91
Commit
adbb6f91
authored
Apr 25, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show standard deviation in %.
parent
5d053bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
rt_analyzer/analyze.py
rt_analyzer/analyze.py
+4
-0
No files found.
rt_analyzer/analyze.py
View file @
adbb6f91
...
@@ -64,6 +64,7 @@ for line in lines_list[1:]:
...
@@ -64,6 +64,7 @@ for line in lines_list[1:]:
channel0_mean
=
statistics
.
mean
(
timestamp_channel0_delta_list
)
channel0_mean
=
statistics
.
mean
(
timestamp_channel0_delta_list
)
channel0_median
=
statistics
.
median
(
timestamp_channel0_delta_list
)
channel0_median
=
statistics
.
median
(
timestamp_channel0_delta_list
)
channel0_stdev
=
statistics
.
stdev
(
timestamp_channel0_delta_list
)
channel0_stdev
=
statistics
.
stdev
(
timestamp_channel0_delta_list
)
channel0_stdev_percentile
=
(
channel0_stdev
*
100
)
/
channel0_median
try
:
try
:
channel0_mode
=
statistics
.
mode
(
timestamp_channel0_delta_list
)
channel0_mode
=
statistics
.
mode
(
timestamp_channel0_delta_list
)
except
statistics
.
StatisticsError
:
except
statistics
.
StatisticsError
:
...
@@ -74,6 +75,7 @@ channel0_max = max(timestamp_channel0_delta_list)
...
@@ -74,6 +75,7 @@ channel0_max = max(timestamp_channel0_delta_list)
channel1_mean
=
statistics
.
mean
(
timestamp_channel1_delta_list
)
channel1_mean
=
statistics
.
mean
(
timestamp_channel1_delta_list
)
channel1_median
=
statistics
.
median
(
timestamp_channel1_delta_list
)
channel1_median
=
statistics
.
median
(
timestamp_channel1_delta_list
)
channel1_stdev
=
statistics
.
stdev
(
timestamp_channel1_delta_list
)
channel1_stdev
=
statistics
.
stdev
(
timestamp_channel1_delta_list
)
channel1_stdev_percentile
=
(
channel1_stdev
*
100
)
/
channel1_median
try
:
try
:
channel1_mode
=
statistics
.
mode
(
timestamp_channel1_delta_list
)
channel1_mode
=
statistics
.
mode
(
timestamp_channel1_delta_list
)
except
statistics
.
StatisticsError
:
except
statistics
.
StatisticsError
:
...
@@ -91,6 +93,7 @@ print("\tMedian = ", channel0_median)
...
@@ -91,6 +93,7 @@ print("\tMedian = ", channel0_median)
print
(
"
\
t
Min = "
,
channel0_min
)
print
(
"
\
t
Min = "
,
channel0_min
)
print
(
"
\
t
Max = "
,
channel0_max
)
print
(
"
\
t
Max = "
,
channel0_max
)
print
(
"
\
t
Standart deviation = "
,
channel0_stdev
)
print
(
"
\
t
Standart deviation = "
,
channel0_stdev
)
print
(
"
\
t
Standart deviation (%) = "
,
channel0_stdev_percentile
)
print
(
"
\
t
Mode (most occurencies) = "
,
channel0_mode
)
print
(
"
\
t
Mode (most occurencies) = "
,
channel0_mode
)
print
(
"
\
n
Channel1 (in seconds):"
)
print
(
"
\
n
Channel1 (in seconds):"
)
...
@@ -99,6 +102,7 @@ print("\tMedian = ", channel1_median)
...
@@ -99,6 +102,7 @@ print("\tMedian = ", channel1_median)
print
(
"
\
t
Min = "
,
channel1_min
)
print
(
"
\
t
Min = "
,
channel1_min
)
print
(
"
\
t
Max = "
,
channel1_max
)
print
(
"
\
t
Max = "
,
channel1_max
)
print
(
"
\
t
Standart deviation = "
,
channel1_stdev
)
print
(
"
\
t
Standart deviation = "
,
channel1_stdev
)
print
(
"
\
t
Standart deviation (%) = "
,
channel1_stdev_percentile
)
print
(
"
\
t
Mode (most occurencies) = "
,
channel1_mode
)
print
(
"
\
t
Mode (most occurencies) = "
,
channel1_mode
)
...
...
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