Intuitionistic Fuzzy Methods
- Methods
- Validator
Correlations
- pyifdm.correlations.pearson_coef(x, y)[source]
Calculate Pearson correlation between two vectors
- Parameters:
x (ndarray) – Array with values
y (ndarray) – Array with values
- Returns:
Correlation between two vectors
- Return type:
float
- pyifdm.correlations.spearman_coef(x, y)[source]
Calculate Spearman correlation between two vectors
- Parameters:
x (ndarray) – Array with values
y (ndarray) – Array with values
- Returns:
Correlation between two vectors
- Return type:
float
Helpers
- pyifdm.helpers.generate_ifs_matrix(m, n)[source]
Generates random Intuitionistic Fuzzy matrix with m alternatives and n criteria
- Parameters:
m (int) – Number of alternatives
n (int) – Number of criteria
- Returns:
Matrix with random IFSs
- Return type:
ndarray
- pyifdm.helpers.rank(x, descending=True)[source]
Calculates ranking of given values with the given direction, default descending order
- Parameters:
x (ndarray) – Array with values
descending (boolean, default=True) – Switch to change ranking order
- Returns:
Ranking with given order
- Return type:
ndarray
Weights
- pyifdm.weights.burillo_entropy_weights(matrix)[source]
Calculates the objective weights for Intuitionistic Fuzzy Matrix, weight depend on the Burillo entropy measure in the column
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data Alternatives are in rows and Criteria are in columns
- Returns:
Array of weights based on matrix entropy
- Return type:
ndarray
- pyifdm.weights.entropy_weights(matrix)[source]
Calculates the objective weights for Intuitionistic Fuzzy Matrix, weight depend on the entropy measure in the column
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data Alternatives are in rows and Criteria are in columns
- Returns:
Array of weights based on matrix entropy
- Return type:
ndarray
- pyifdm.weights.equal_weights(matrix)[source]
Calculates the objective weights for Intuitionistic Fuzzy Matrix, each weight will have the same value
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data Alternatives are in rows and Criteria are in columns
- Returns:
Array of equal weights
- Return type:
ndarray
- pyifdm.weights.liu_entropy_weights(matrix)[source]
Calculates the objective weights for Intuitionistic Fuzzy Matrix, weight depend on the Liu entropy measure in the column
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data Alternatives are in rows and Criteria are in columns
- Returns:
Array of weights based on matrix entropy
- Return type:
ndarray
- pyifdm.weights.szmidt_entropy_weights(matrix)[source]
Calculates the objective weights for Intuitionistic Fuzzy Matrix, weight depend on the Szmidt entropy measure in the column
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data Alternatives are in rows and Criteria are in columns
- Returns:
Array of weights based on matrix entropy
- Return type:
ndarray
- pyifdm.weights.thakur_entropy_weights(matrix)[source]
Calculates the objective weights for Intuitionistic Fuzzy Matrix, weight depend on the Thakur entropy measure in the column
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data Alternatives are in rows and Criteria are in columns
- Returns:
Array of weights based on matrix entropy
- Return type:
ndarray
- pyifdm.weights.ye_entropy_weights(matrix)[source]
Calculates the objective weights for Intuitionistic Fuzzy Matrix, weight depend on the Ye entropy measure in the column
- Parameters:
matrix (ndarray) – Decision matrix / alternatives data Alternatives are in rows and Criteria are in columns
- Returns:
Array of weights based on matrix entropy
- Return type:
ndarray