T-Rex: Add advanced stateful mode
[csit.git] / resources / libraries / python / MLRsearch / MultipleLossRatioSearch.py
index 29b7250..2db65ef 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2019 Cisco and/or its affiliates.
+# Copyright (c) 2020 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -135,7 +135,7 @@ class MultipleLossRatioSearch(AbstractSearchAlgorithm):
         :type measurer: AbstractMeasurer.AbstractMeasurer
         :type final_relative_width: float
         :type final_trial_duration: float
-        :type initial_trial_duration: int
+        :type initial_trial_duration: float
         :type number_of_intermediate_phases: int
         :type timeout: float
         :type doublings: int
@@ -605,7 +605,7 @@ class MultipleLossRatioSearch(AbstractSearchAlgorithm):
 
     @staticmethod
     def _ndrpdr_duration(
-            state, ndr_lo, pdr_lo, ndr_hi, pdr_hi, ndr_rel_width,
+            state, ndr_lo, ndr_hi, pdr_lo, pdr_hi, ndr_rel_width,
             pdr_rel_width):
         """Perform duration-based trials within a ndrpdr phase