lsapy.functions.discrete#
- lsapy.functions.discrete(x, rules)[source]#
Discrete suitability function.
This function maps the indicator values to a set of rules that define the suitability values.
- Parameters:
x (any) – Indicator values to map.
rules (dict[str | int, int | float]) – Rules to map the indicator values to suitability values. The keys correspond to the indicator values and the values to its associated suitability values.
- Returns:
Suitability values.
- Return type:
np.ndarray