Wu | R Documentation |
Returns a matrix M
with M[i,j]
is the resistance between
nodes i
and j
.
Wu(L)
L |
Laplacian conductance matrix |
Evaluates Wu's resistance matrix, as per his theorem on page 6656.
Returns a matrix of the same size as L
, but whose elements are
the effective resistance between the nodes.
In the function, the sum is not from 2 to n
as in Wu, but
from 1 to n-1
, because eigen()
orders the
eigenvalues from largest to smallest, not smallest to largest.
Robin K. S. Hankin
F. Y. Wu, 2004. “Theory of resistor networks: the two point resistance”, Journal of Physics A, volume 37, pp6653-6673
resistance
Wu(cube())
Wu(cube())[1,2] - resistance(cube(),1,2)
Wu(series(1:7)) # observe how resistance between, say, nodes 2
# and 5 is 9 (=2+3+4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.