exp_oc | R Documentation |
exp_oc
the OC function for exponential reliability tests
(probability of passing test as a function of true MTBF). See pg. 67
for the OC formula in MIL-HDBK-781A.
exp_oc(accept, duration, mtbf)
accept |
A vector with the allowable number of failures. |
duration |
A vector of test durations. |
mtbf |
A vector of the true MTBFs. |
The probability of passing the test of a given duration with an
allowable number of failures, given the true MTBF. (The probability of
accepting items with an MTBF = mtbf
.)
Mil-Hdbk-781A
exp_mtbf_req
, exp_reliability_req
,
exp_test_duration
, exp_mean_lcb
,
exp_fixed_duration_tests
theta <- seq(250, 5000, 50)
prob_pass <- exp_oc(accept = 0, duration = 804.719, mtbf = theta)
prob_pass[1:5]
ggplot(data.frame(prob_pass = prob_pass, theta = theta)) +
geom_line(
aes(x = theta, y = prob_pass),
linewidth = 1, colour = "blue"
) +
scale_y_continuous(limits = c(0,1), breaks = seq(0,1,.2))
# Using stat_function()
ggplot(data.frame(x=c(250,5000))) +
stat_function(
aes(x=x), fun = exp_oc, args = list(accept = 0, duration = 804.719),
linewidth = 1, colour = "blue"
) +
scale_y_continuous(limits = c(0,1), breaks = seq(0,1,.2)) +
labs(x = "MTBF", y = "Prob of Passing Demonstration")
# See: example(exp_fixed_duration_tests)
rm(list = c("theta", "prob_pass"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.