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 thedemand_index
and thesupply_index
.It computes the weighted average of the
demand_index
and thesupply_index
based on the provideddemand_weight
andsupply_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
.