Operations across rows of a matrix, comparing overlap -
imagine symmetric matrix follows:
   b  c  d    50 0  25 b 50    0  50 c 0  0     50 d 25 50 50    what i'm trying accomplish dyadic, comparing across 2 nodes see how overlap have other nodes in matrix.
for example, following matrix product need obtain.
   b  c  d    25 25 50 b 25    50 25 c 25 50    0 d 50 25 0    the value of 25 in [a,b] cell of latter matrix obtained comparing how , b respectfully related c , d. instance:
- first across top row of top matrix.
 - ignore a's relationship b.
 - a has 0 relationship c. ignore because of 0.
 - a has 25 relationship d. b's relationship d equal or greater number, give 25 credit a. becomes [a,b] cell.
 
for [b,a] cell, it's similar process:
- similarly, across second row of matrix.
 - ignore b's relationship a.
 - b has 0 relationship c. ignore because of 0.
 - b has 50 relationship d. node a's relationship d 25, give b credit of 25 in terms of overlap.
 
conceptually, these relatively straightforward, functions permit these operations? actual matrix has hundreds of nodes, calculating hand not option.
 
 
  
Comments
Post a Comment