gate_andThe Boolean logic gate "and" in the fault tree. Calculate the probability that the conditioning event happens according to the inputs.
q = gate_and(q1, q2)xxxxxxxxxxq = gate_and(q1, q2)Calculate the probability that the conditioning event happens according to the inputs q1 and q2.
The relationship between them satisfies the following equation.
where
x>>> from OpenHA.assessment.system import gate_and>>> q1, q2 = 0.8, 0.9>>> print(gate_and(q1, q2))
0.72
q1 —— The probability that an event happens, specified as a positive numeric scaler in
q2 —— The probability that the other event happens, specified as a positive numeric scaler in