search for: coeffizient

Displaying 1 result from an estimated 1 matches for "coeffizient".

Did you mean: coefficient
2002 Mar 26
1
comparing row by row in matrix
I don't know the Russell-Rao coefficient but maybe this will help: You can compute the number of times y and x are both 1 (that's what your function f does) by counting 1s in y*x, i.e., sum(y*x), aka t(y)%*%x. Ordinary matrix multiplication does this row-by-column, so if M and N are two binary matrices, M%*%t(N) will have (i,j) entry equal to the count of 1s in common to row i of M and