From e790c0ff3372b153c582b4adfc7f06a5ba86b5f6 Mon Sep 17 00:00:00 2001 From: jfalkenhagen Date: Thu, 2 Jul 2020 17:51:23 +0200 Subject: Proof_Of_Concept_PELT - renamed decision function --- bin/Proof_Of_Concept_PELT.py | 4 ++-- 1 file 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: -- cgit v1.2.3