6 PHM Gui Reliability Calculation Class 15 Reliability Calculation Class 19 Reliability Calculation Function 21 Reliability Types = Exponential, Rayleigh, Weibull, Curve Distribution 27 if selected_reliability_unit:
30 reliability_time = float(usage_time) / float(unit)
32 if selected_reliability_model ==
"Exponential Distribution":
35 elif selected_reliability_model ==
"Rayleigh Distribution":
38 elif selected_reliability_model ==
"Weibull Distribution":
41 elif selected_reliability_model ==
"Curve Distribution":
47 return float(reliability)
52 Reliability Model = Exponential Distribution 56 return float(math.exp(float(-1) * float(reliability_time) * float(failure_rate)))
61 Reliability Model = Rayleigh Distribution 63 R = e ^ -( (t/λ) ^ 2 ) 65 return float(math.exp(float(-1) * pow((float(reliability_time) / float(failure_rate)), 2)))
70 Reliability Model = Weibull Distribution 72 R = e ^ -( (t/λ) ^ c ) 74 return float(math.exp(float(-1) * pow((float(reliability_time) / float(failure_rate)), shape_parameter)))
79 Reliability Model = Curve Distribution 81 R = e ^ -( e ^ ( (λt) ^ c ) - 1 ) 83 mini_formula = float(math.exp(pow((float(reliability_time) * float(failure_rate)), shape_parameter))) - float(1)
84 return float(math.exp(float(-1) * mini_formula))
def reliability_calculate_func(self, usage_time, failure_rate, selected_reliability_model, selected_reliability_unit, shape_parameter)
def reliability_weibull_func(cls, reliability_time, failure_rate, shape_parameter)
def reliability_curve_func(cls, reliability_time, failure_rate, shape_parameter)
def reliability_rayleigh_func(cls, reliability_time, failure_rate)
def reliability_exponential_func(cls, reliability_time, failure_rate)