pysad.statistics.SumSquaresMeter¶
- class pysad.statistics.SumSquaresMeter[source]¶
The statistic that keeps track of the sum of squares. This class is useful to calculate and used in VarianceMeter.
- Attrs:
sum_squares (float): The sum of squares of values. num_items (int): The number of items that are used to update the statistic.
Methods
__init__
()get
()Method to obtain the tracked statistic.
remove
(num)Updates the statistic by removing particular value.
update
(num)Updates the statistic with the value for a timestep.