Beispiel #1
0
    def getSumDirectForRow(self, matrix, row):
        sum = Ivns(0, 0, 0, 0, 0, 0)

        for j in range(len(matrix[0])):
            sum.tl = round(sum.tl + float(matrix[row][j].tl), 3)
            sum.tu = round(sum.tu + float(matrix[row][j].tu), 3)
            sum.il = round(sum.il + float(matrix[row][j].il), 3)
            sum.iu = round(sum.iu + float(matrix[row][j].iu), 3)
            sum.fl = round(sum.fl + float(matrix[row][j].fl), 3)
            sum.fu = round(sum.fu + float(matrix[row][j].fu), 3)
        return sum
Beispiel #2
0
    def getDivDirect(self, listj, col):
        divResult = Ivns(0, 0, 0, 0, 0, 0)

        divResult.tl = round(float(listj.tl) / float(col.tl), 3)
        divResult.tu = round(float(listj.tu) / float(col.tu), 3)
        divResult.il = round(float(listj.il) / float(col.il), 3)
        divResult.iu = round(float(listj.iu) / float(col.iu), 3)
        divResult.fl = round(float(listj.fl) / float(col.fl), 3)
        divResult.fu = round(float(listj.fu) / float(col.fu), 3)

        return divResult
Beispiel #3
0
    def getSumDirect(self, listj, col):
        sum = Ivns(0, 0, 0, 0, 0, 0)

        for row in listj:
            sum.tl = round(sum.tl + float(row[col].tl), 3)
            sum.tu = round(sum.tu + float(row[col].tu), 3)
            sum.il = round(sum.il + float(row[col].il), 3)
            sum.iu = round(sum.iu + float(row[col].iu), 3)
            sum.fl = round(sum.fl + float(row[col].fl), 3)
            sum.fu = round(sum.fu + float(row[col].fu), 3)

        return sum