diff options
author | jfalkenhagen <jfalkenhagen@uos.de> | 2020-07-02 17:51:23 +0200 |
---|---|---|
committer | jfalkenhagen <jfalkenhagen@uos.de> | 2020-07-02 17:51:23 +0200 |
commit | e790c0ff3372b153c582b4adfc7f06a5ba86b5f6 (patch) | |
tree | 496e83a276f689795068bee84c3d995afebbe97a | |
parent | 2c50b0996563ae2eb313b3d74f762e50c8ca9f6a (diff) |
Proof_Of_Concept_PELT - renamed decision function
-rw-r--r-- | bin/Proof_Of_Concept_PELT.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/Proof_Of_Concept_PELT.py b/bin/Proof_Of_Concept_PELT.py index 2ed7675..6912b02 100644 --- a/bin/Proof_Of_Concept_PELT.py +++ b/bin/Proof_Of_Concept_PELT.py @@ -215,7 +215,7 @@ def needs_refinement_no_sort(signal, mean, thresh): # Very short benchmark yielded approx. 3 times the speed of solution not using sort -def needs_refinement_sort(signal, thresh): +def needs_refinement(signal, thresh): sorted_signal = sorted(signal) length_of_signal = len(signal) percentile_size = int() @@ -376,7 +376,7 @@ if __name__ == '__main__': signal = measurement['uW'] # mean = measurement['uW_mean'] # TODO: Decide if median is really the better baseline than mean - if needs_refinement_sort(signal, opt_refinement_thresh): + if needs_refinement(signal, opt_refinement_thresh): print("Refinement is necessary!") break elif ".tar" in opt_filename: |