Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # simulating the accelerated life tests
- for R in reliabilities:
- for n_s in n_samples:
- test_battery = [Device(R) for _ in range(n_s)]
- for rep in test_repetitions:
- repetition_passed[rep] = conduct_test(test_battery)
- frequency_of_catching_subpar_samples[R][n_s] = 1-np.mean(repetition_passed)
- print("Confidence level of detecting fact that population shows reliability of <R given n_s samples is")
- def print_summary(R, n_s):
- print("R={}, n_s={}".format(R,n_s), "--> C=",frequency_of_catching_subpar_samples[R][n_s])
Advertisement
Add Comment
Please, Sign In to add comment