onstove.MCA.set_clean_cooking_index#

MCA.set_clean_cooking_index(demand_weight: float = 1, supply_weight: float = 1, buffer: bool = False)[source]#

Computes the clean_cooking_index using the demand_index and the supply_index.

It computes the weighted average of the demand_index and the supply_index based on the provided demand_weight and supply_weight.

Parameters:
demand_weight: float, default 1

Value used to weigh the demand_index dataset.

supply_weight: float, default 1

Value used to weigh the supply_index dataset.

buffer: str, default ``False``

Whether to buffer the areas outside the RasterLayer.distance_limit.