online_pomdp_planning.utils module¶
Utility functions that should have been provided by a standard library
-
class
online_pomdp_planning.utils.MovingStatistic[source]¶ Bases:
objectA moving average
Maintains average, min and max of a list of values online
-
online_pomdp_planning.utils.normalize_float(v, lower_bound, upper_bound)[source]¶ Normalizes
vbetweenlower_boundandupper_boundAssumes (and will not check) that lower_bound <= v <= upper_bound
- Parameters
v (
float) – the value to be normalizedlower_bound (
float) – the supposedly lowest possible valueupper_bound (
float) – the supposedly highest possible value
- Return type
float- Returns
normalized
value(between 0 and 1)