hestia_earth.aggregation.utils.value_difference¶
-
hestia_earth.aggregation.utils.value_difference(value, expected_value)[source]¶ Get the difference in percentage between a value and the expected value.
- Parameters
value (float) – The value to check.
expected_value (float) – The expected value.
- Returns
The difference in percentage between the value and the expected value.
- Return type
bool