nns.c
1.0.1
Nanowire Network simulator
|
Defines the function to calculate the resistance distance between two points in a Nanowire Network Connected Component. More...
Go to the source code of this file.
Functions | |
double | resistive_distance (const network_state ns, const connected_component cc, int a, int b) |
Calculate the resistance distance between two points of a Nanowire Network Connected Component. More... | |
Defines the function to calculate the resistance distance between two points in a Nanowire Network Connected Component.
This file contains the declaration of the function resistive_distance
which computes the equivalent resistance between two nanowires in a connected component of a Nanowire Network. The measure is based on the circuital state of the network.
double resistive_distance | ( | const network_state | ns, |
const connected_component | cc, | ||
int | a, | ||
int | b | ||
) |
Calculate the resistance distance between two points of a Nanowire Network Connected Component.
[in] | ns | The Nanowire Network circuital state on which perform the measure. |
[in] | cc | The Connected Component of the Nanowire Network on which perform the measure. |
[in] | a | The index of the first nanowire to consider for the calculation (relative to the Connected Component). |
[in] | b | The index of the second nanowire to consider for the calculation (relative to the Connected Component). |