Class swarmauri_core.measurements.IMeasurementCalculate.IMeasurementCalculate
swarmauri_core.measurements.IMeasurementCalculate.IMeasurementCalculate
Bases: ABC
calculate
abstractmethod
calculate(*args, **kwargs)
Calculate the measurement based on the provided data.
PARAMETER | DESCRIPTION |
---|---|
*args tuple[Any, ...]
|
Variable length argument list that the measurement calculation might require.
|
**kwargs dict[str, Any]
|
Arbitrary keyword arguments that the measurement calculation might require.
|
Source code in swarmauri_core/measurements/IMeasurementCalculate.py
6 7 8 9 10 11 12 13 14 15 |
|
update
abstractmethod
update(value)
Update the measurement value based on new information.
PARAMETER | DESCRIPTION |
---|---|
value float
|
The new information used to update the measurement. This could be a new measurement or data point that affects the measurement's current value.
|
Note
This method is intended for internal use and should not be publicly accessible.
Source code in swarmauri_core/measurements/IMeasurementCalculate.py
17 18 19 20 21 22 23 24 25 26 27 28 29 |
|