def RateDifferenceVoteMatrix(self):
"""This function outputs only Point Difference Matrix.
It can be ensured that every element of the matrix are not less than 0
"""
idx = self.itemlist
table = self.table
icnt = len(idx)
# allocate space for computing
D = np.zeros((icnt, icnt), dtype=np.float32)
pair = self.pair
fast_rate_diff_vote_matrix_build(pair,
np.require(table.iloc[:,2:].values, dtype=np.float32),
D)
return D
评论列表
文章目录