Skip to content

Class swarmauri_core.measurements.IMeasurementAggregate.IMeasurementAggregate

swarmauri_core.measurements.IMeasurementAggregate.IMeasurementAggregate

Bases: ABC

add_measurement abstractmethod

add_measurement(measurement)
Source code in swarmauri_core/measurements/IMeasurementAggregate.py
6
7
8
@abstractmethod
def add_measurement(self, measurement: Any) -> None:
    pass

reset abstractmethod

reset()

Reset or clear the measurement's current state, starting fresh as if no data had been processed. This is useful for measurements that might aggregate or average data over time and need to be reset.

Source code in swarmauri_core/measurements/IMeasurementAggregate.py
10
11
12
13
14
15
16
@abstractmethod
def reset(self) -> None:
    """
    Reset or clear the measurement's current state, starting fresh as if no data had been processed.
    This is useful for measurements that might aggregate or average data over time and need to be reset.
    """
    pass