Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
X-Lap
Commits
2ffc0736
Commit
2ffc0736
authored
Feb 14, 2018
by
Andreas Schmidt
Browse files
Allow to specify specific threshold to jitter function.
parent
553baa09
Changes
1
Hide whitespace changes
Inline
Side-by-side
xlap/analyse/jitter.py
View file @
2ffc0736
...
...
@@ -28,12 +28,13 @@ def jitter_causes(df, durations, export=False, file_name=None):
print
(
"Outliers:"
,
len
(
outliers
),
";"
,
"Threshold[us]:"
,
threshold
)
def
trace_jitter
(
data_frame
,
export
=
False
,
file_name
=
None
):
def
trace_jitter
(
data_frame
,
threshold
=
None
,
export
=
False
,
file_name
=
None
):
"""
Displays (and saves) a stacked boxplot of durations.
"""
thresh
=
get_outlier_threshold
(
data_frame
[
"EndToEnd_D"
].
describe
())
df_no_outliers
=
data_frame
[
data_frame
[
"EndToEnd_D"
]
<=
thresh
]
if
threshold
is
None
:
threshold
=
get_outlier_threshold
(
data_frame
[
"EndToEnd_D"
].
describe
())
df_no_outliers
=
data_frame
[
data_frame
[
"EndToEnd_D"
]
<=
threshold
]
box
(
df_no_outliers
,
export
,
file_name
)
print
(
"{} / {} are no outliers."
.
format
(
len
(
df_no_outliers
),
len
(
data_frame
)))
fig
=
plt
.
gcf
()
...
...
Write
Preview
Supports
Markdown
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