reliability-compute
Compute the reliability of a compound system described as a graph.
About
See: https://en.wikipedia.org/wiki/Reliability_engineering#Reliability_modeling
How to use
var graphlib = ;var reliability = ; /** * Compute the reliability of the following graph : * ---(0.1)---b---(0.2)--- * / \ * --a-----------(0.5)----------c-- * */var g = ;g;g;g; /* The result is * 1 - (1 - 0.5) * (1 - 0.1*0.2) = 0.51 */var result = ;console; // Prints 0.51