FaultTree v0.1.0 FaultTree.Analyzer View Source
Handles building a fault tree out of an array of nodes.
Link to this section Summary
Link to this section Functions
Link to this function
probability(node, tree, pid) View Source
Calculate the probability of failure for a given node. The node must have all of its children with defined probabilities.
For TRANSFER gates, the probability is copied from the source node. If the source node was not calculated before the transfer gate is reached, the probability will be calculated twice. This will be inefficient, but mathemetically correct.
Link to this function
process(tree) View Source
Converts a FaultTree
struct into a hierarchical map.