pyrepo_mcda.weighting_methods ============================= .. py:module:: pyrepo_mcda.weighting_methods Functions --------- .. autoapisummary:: pyrepo_mcda.weighting_methods.equal_weighting pyrepo_mcda.weighting_methods.entropy_weighting pyrepo_mcda.weighting_methods.std_weighting pyrepo_mcda.weighting_methods.critic_weighting pyrepo_mcda.weighting_methods.gini_weighting pyrepo_mcda.weighting_methods.merec_weighting pyrepo_mcda.weighting_methods.stat_var_weighting pyrepo_mcda.weighting_methods.cilos_weighting pyrepo_mcda.weighting_methods.idocriw_weighting pyrepo_mcda.weighting_methods.angle_weighting pyrepo_mcda.weighting_methods.coeff_var_weighting Module Contents --------------- .. py:function:: equal_weighting(matrix) Calculate criteria weights using objective Equal weighting method. Parameters ----------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. Returns -------- ndarray Vector of criteria weights. Examples ---------- >>> weights = equal_weighting(matrix) .. py:function:: entropy_weighting(matrix) Calculate criteria weights using objective Entropy weighting method. Parameters ----------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. Returns -------- ndarray Vector of criteria weights. Examples ---------- >>> weights = entropy_weighting(matrix) .. py:function:: std_weighting(matrix) Calculate criteria weights using objective Standard deviation weighting method. Parameters ----------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. Returns -------- ndarray Vector of criteria weights. Examples ---------- >>> weights = std_weighting(matrix) .. py:function:: critic_weighting(matrix) Calculate criteria weights using objective CRITIC weighting method. Parameters ----------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. Returns -------- ndarray Vector of criteria weights. Examples ---------- >>> weights = critic_weighting(matrix) .. py:function:: gini_weighting(matrix) Calculate criteria weights using objective Gini coefficient-based weighting method. Parameters ---------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. Returns -------- ndarray Vector of criteria weights. Examples --------- >>> weights = gini_weighting(matrix) .. py:function:: merec_weighting(matrix, types) Calculate criteria weights using objective MEREC weighting method. Parameters ----------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. types : ndarray Vector with criteria types. Returns -------- ndarray Vector of criteria weights. Examples --------- >>> weights = merec_weighting(matrix, types) .. py:function:: stat_var_weighting(matrix) Calculate criteria weights using objective Statistical variance weighting method. Parameters ---------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. Returns ------- ndarray Vector of criteria weights. Examples --------- >>> weights = stat_var_weighting(matrix) .. py:function:: cilos_weighting(matrix, types) Calculate criteria weights using objective CILOS weighting method. Parameters ---------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. types : ndarray Vector with criteria types. Returns ------- ndarray Vector of criteria weights. Examples >>> weights = cilos_weighting(matrix, types) .. py:function:: idocriw_weighting(matrix, types) Calculate criteria weights using objective IDOCRIW weighting method. Parameters ---------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. types : ndarray Vector with criteria types. Returns ------- ndarray Vector of criteria weights. Examples --------- >>> weights = idocriw_weighting(matrix, types) .. py:function:: angle_weighting(matrix, types) Calculate criteria weights using objective Angle weighting method. Parameters ---------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. types : ndarray Vector with criteria types. Returns ------- ndarray Vector of criteria weights. Examples --------- >>> weights = angle_weighting(matrix, types) .. py:function:: coeff_var_weighting(matrix) Calculate criteria weights using objective Coefficient of variation weighting method. Parameters ---------- matrix : ndarray Decision matrix with performance values of m alternatives and n criteria. Returns ------- ndarray Vector of criteria weights. Examples --------- >>> weights = coeff_var_weighting(matrix)