pyrepo_mcda.mcda_methods.cradis =============================== .. py:module:: pyrepo_mcda.mcda_methods.cradis Classes ------- .. autoapisummary:: pyrepo_mcda.mcda_methods.cradis.CRADIS Module Contents --------------- .. py:class:: CRADIS(normalization_method=linear_normalization) Bases: :py:obj:`pyrepo_mcda.mcda_methods.mcda_method.MCDA_method` Compromise Ranking of Alternatives from Distance to Ideal Solution (CRADIS) method for ranking alternatives according to their distances from ideal and anti-ideal solutions. .. py:attribute:: normalization_method .. py:method:: __call__(matrix, weights, types) Score alternatives provided in decision matrix `matrix` using criteria `weights` and criteria `types`. Parameters ----------- matrix : ndarray Decision matrix with m alternatives in rows and n criteria in columns. weights: ndarray Criteria weights. Sum of weights must be equal to 1. types: ndarray Criteria types. Profit criteria are represented by 1 and cost by -1. Returns -------- ndrarray Preference values of each alternative. The best alternative has the highest preference value. Examples ---------- >>> cradis = CRADIS() >>> pref = cradis(matrix, weights, types) >>> rank = rank_preferences(pref, reverse = True) .. py:method:: _cradis(matrix, weights, types, normalization_method) :staticmethod: