Stress - Strength Interference Given the probability distributions for stress and strength, this module will find the probability of failure due to stress-strength interference. Failure is defined as when stress>strength. The calculation is achieved using numerical integration.
Inputs: stress - a probability distribution from the Distributions module strength - a probability distribution from the Distributions module show_distribution_plot - True/False (default is True) print_results - True/False (default is True) warn - a warning will be issued if both stress and strength are Normal as you should use stress_strength_normal. You can supress this using warn=False
- a warning will be issued if the stress.mean > strength.mean as the user may have assigned the distributions to the wrong variables. You can supress this using warn=False
Returns: probability of failure
Example use: from reliability.Distributions import Weibull_Distribution, Gamma_Distribution stress = Weibull_Distribution(alpha=2,beta=3,gamma=1) strength = Gamma_Distribution(alpha=2,beta=3,gamma=3) stress_strength(stress=stress, strength=strength)