pyrepo_mcda.correlations ======================== .. py:module:: pyrepo_mcda.correlations Functions --------- .. autoapisummary:: pyrepo_mcda.correlations.spearman pyrepo_mcda.correlations.weighted_spearman pyrepo_mcda.correlations.pearson_coeff pyrepo_mcda.correlations.WS_coeff Module Contents --------------- .. py:function:: spearman(R, Q) Calculate Spearman rank correlation coefficient between two vectors Parameters ----------- R : ndarray First vector containing values Q : ndarray Second vector containing values Returns -------- float Value of correlation coefficient between two vectors Examples ---------- >>> rS = spearman(R, Q) .. py:function:: weighted_spearman(R, Q) Calculate Weighted Spearman rank correlation coefficient between two vectors Parameters ----------- R : ndarray First vector containing values Q : ndarray Second vector containing values Returns -------- float Value of correlation coefficient between two vectors Examples --------- >>> rW = weighted_spearman(R, Q) .. py:function:: pearson_coeff(R, Q) Calculate Pearson correlation coefficient between two vectors Parameters ----------- R : ndarray First vector containing values Q : ndarray Second vector containing values Returns -------- float Value of correlation coefficient between two vectors Examples ---------- >>> corr = pearson_coeff(R, Q) .. py:function:: WS_coeff(R, Q) Calculate Rank smilarity coefficient between two vectors Parameters ----------- R : ndarray First vector containing values Q : ndarray Second vector containing values Returns -------- float Value of similarity coefficient between two vectors Examples ---------- >>> ws = WS_coeff(R, Q)