aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-06-30 18:08:41 +0200
committerAndre Puschmann <andre@softwareradiosystems.com>2020-07-01 10:52:09 +0200
commitf8c99a863d025f2f5526bedb56d70fa6ba36503d (patch)
treecc02bc74da4cb6b81db802fcba597ccfe4406f6b /src/osmo_gsm_tester
parentba40facbafebddbcae169585b71abb77b89c1faf (diff)
ms_srs: add min_rolling_average calculation
useful metric to detect low/zero downlink throughput for longer time periods Change-Id: I77a82a68689bc6c21cb9227dc9e7616d03e2b547
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/obj/ms_srs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/obj/ms_srs.py b/src/osmo_gsm_tester/obj/ms_srs.py
index ebd066d..96623a2 100644
--- a/src/osmo_gsm_tester/obj/ms_srs.py
+++ b/src/osmo_gsm_tester/obj/ms_srs.py
@@ -400,7 +400,7 @@ numpy = None
class srsUEMetrics(log.Origin):
- VALID_OPERATIONS = ['avg', 'sum', 'max_rolling_avg']
+ VALID_OPERATIONS = ['avg', 'sum', 'max_rolling_avg', 'min_rolling_avg']
VALID_CRITERION = ['eq','gt','lt']
CRITERION_TO_SYM = { 'eq' : '==', 'gt' : '>', 'lt' : '<' }
CRYTERION_TO_SYM_OPPOSITE = { 'eq' : '!=', 'gt' : '<=', 'lt' : '>=' }
@@ -458,6 +458,9 @@ class srsUEMetrics(log.Origin):
elif operation == 'max_rolling_avg':
# calculate rolling average over window and take maximum value
result = numpy.amax(numpy.convolve(sel_data, numpy.ones((window,))/window, mode='valid'))
+ elif operation == 'min_rolling_avg':
+ # calculate rolling average over window and take minimum value
+ result = numpy.amin(numpy.convolve(sel_data, numpy.ones((window,))/window, mode='valid'))
self.dbg(result=result, value=value)