nocad.robustness.robustness_table#

nocad.robustness.robustness_table(adj, configurations, labels=None)[source]#

Robustness of several configurations (MATLAB robust over the five methods).

Parameters:
configurationsdict mapping a name to (drivers, sensors)
labelssequence of str, optional

Node names used for the critical nodes (indices are returned otherwise).

Returns:
DataFrame with control/observe robustness and the critical nodes of every configuration.

Examples

>>> t = robustness_table([[0, 1], [0, 0]], {"one": ([0], [1])}, labels=["x1", "x2"])
>>> t.loc[0, "control_critical"], t.loc[0, "observe_critical"]
(['x1'], ['x2'])