Intuitionistic Fuzzy WSM
Method object
- class pyifdm.methods.if_wsm.ifWSM(score=<function chen_score_1>, normalization=None)[source]
Bases:
object- __call__(matrix, weights, types)[source]
Calculates the alternatives preferences
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data. Alternatives are in rows and Criteria are in columns.
weights (ndarray) – Vector of criteria weights in a crisp or Intuitionistic Fuzzy form
types (ndarray) – Types of criteria, 1 profit, -1 cost. Criteria types cannot be all profit or all cost.
- Returns:
Preference calculated for alternatives. Greater values are placed higher in ranking
- Return type:
ndarray
- __init__(score=<function chen_score_1>, normalization=None)[source]
Creates Intuitionistic Fuzzy WSM method object with normalization and score functions
- Parameters:
score (callable, default=chen_score_1) – Function used to calculate score between two IFS
normalization (callable, default=None) – Function used to normalize the decision matrix
Intuitionistic Fuzzy calculations
- pyifdm.methods.wsm.ifs.ifs(matrix, weights, types, normalization, score)[source]
Calculates the alternatives preferences based on Intuitionistic Fuzzy Sets
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data. Alternatives are in rows and Criteria are in columns.
weights (ndarray) – Vector of criteria weights in a crisp or Intuitionistic Fuzzy form
types (ndarray) – Types of criteria, 1 profit, -1 cost
normalization (callable) – Function used to normalize the decision matrix
distance (callable) – Function used to calculate distance between two IFS
- Returns:
Crisp preferences of alternatives
- Return type:
ndarray