xrspatial.mcda.weights.rank_weights#

xrspatial.mcda.weights.rank_weights(ranking: list[str], method: str = 'roc') dict[str, float][source]#

Derive weights from a rank ordering of criteria.

Parameters:
  • ranking (list of str) – Criteria ordered from most to least important.

  • method (str) – Weighting scheme: "roc" (rank-order centroid), "rs" (rank sum), or "rr" (reciprocal of ranks).

Returns:

weights – Normalized weights summing to 1.0.

Return type:

dict of str to float