Пример #1
0
def scale(dataMatrix):
    nRows, nCols = shape(dataMatrix)
    means = [mean(getCol(dataMatrix, j))
             for j in range(nCols)]
    stdevs = [stdDeviation(getCol(dataMatrix, j))
              for j in range(nCols)]
    return means, stdevs
Пример #2
0
def matrix_product_entry(A, B, i, j):
    return dotProduct(getRow(A, i), getCol(B, j))
Пример #3
0
def matrix_product_entry(A, B, i, j):
    return dotProduct(getRow(A, i), getCol(B, j))
Пример #4
0
 def matrixEntry(i, j):
     return correlation(getCol(data, i), getCol(data, j))
Пример #5
0
 def matrixEntry(i, j):
     return correlation(getCol(data, i), getCol(data, j))