Exemple #1
0
 def deNuutrosophicMatrix(self, matrix):
     result = copy.deepcopy(matrix)
     x = Ivns(0, 0, 0, 0, 0, 0)
     for i in range(len(matrix)):
         for j in range(len(matrix[0])):
             result[i][j] = round(x.deNeutrosophic(matrix[i][j]), 3)
     return result
Exemple #2
0
    def lambdamax(self, arr, w):

        Rindex = [0, 0, 0, 0.58, 0.9, 1.12, 1.24, 1.32, 1.41, 1.45, 1.49]

        sum = 0
        x = Ivns(0, 0, 0, 0, 0, 0)
        for i in range(len(arr)):
            sum = sum + float(arr[i]) / x.deNeutrosophic(w[i])

        result = sum / len(arr)
        result = result - len(arr)
        result = result / (len(arr) - 1)

        result = result / Rindex[len(arr)]
        result = round(result, 4)
        return result