https://raw.githubusercontent.com/MatthewReid854/reliability/master/docs/images/logo.png

ROCOF

class reliability.Repairable_systems.ROCOF(times_between_failures=None, failure_times=None, CI=0.95, test_end=None, show_plot=True, print_results=True, **kwargs)

Uses the failure times or failure interarrival times to determine if there is a trend in those times. The test for statistical significance is the Laplace test which compares the Laplace test statistic (U) with the z value (z_crit) from the standard normal distribution If there is a statistically significant trend, the parameters of the model (Lambda_hat and Beta_hat) are calculated. By default the results are printed and a plot of the times and MTBF is plotted.

Inputs: times_between_failures - these are the failure interarrival times. failure_times - these are the actual failure times.

Note 1: You can specify either times_between_failures OR failure_times but not both. Both options are provided for convenience so the conversion between the two is done internally. failure_times should be the same as np.cumsum(times_between_failures). Note 2: The repair time is assumed to be negligible. If the repair times are not negligibly small then you will need to manually adjust your input to factor in the repair times.

test_end - use this to specify the end of the test if the test did not end at the time of the last failure. CI - the confidence interval for the Laplace test. Default is 0.95 for 95% CI. show_plot - True/False. Default is True. Plotting keywords are also accepted (eg. color, linestyle). print_results - True/False. Default is True

Outputs: U - The Laplace test statistic z_crit - (lower,upper) bound on z value. This is based on the CI. trend - ‘improving’,’worsening’,’constant’. This is based on the comparison of U with z_crit Beta_hat - the Beta parameter for the NHPP Power Law model. Only calculated if the trend is not constant. Lambda_hat - the Lambda parameter for the NHPP Power Law model. Only calculated if the trend is not constant. ROCOF - the Rate of OCcurrence Of Failures. Only calculated if the trend is constant. If trend is not constant then ROCOF changes over time in accordance with Beta_hat and Lambda_hat. printed results. Only printed if print_results is True. plotted results. Only plotted of plot_results is True. Use plt.show() to display it.