R/prob_acceptance_heterogeneous.R
prob_acceptance_heterogeneous.Rd
prob_acceptance_heterogeneous
provides a probability of acceptance in the original sample when samples collected from a heterogeneous batch.
prob_acceptance_heterogeneous(c, mu, sd, a, b, f, u, USL, n, n_sim)
acceptance number
the mean concentration (on the log scale).
the standard deviation of the normal distribution (on the log scale).
lower domain of the number of cell counts.
upper domain of the number of cell counts.
final dilution factor.
amount put on the plate.
upper specification limit.
number of samples which are used for inspection.
number of simulations (large simulations provide a more precise estimation).
Probability of acceptance when sample collected from a heterogeneous batch.
prob_detection_heterogeneous
provides a probability of acceptance when diluted sample collected from a heterogeneous batch (this section will be updated later on).
c <- 2
mu <- 7
sd <- 0.2
a <- 0
b <- 300
f <- 0.01
u <- 0.1
USL <- 1000
n <- 5
n_sim <- 50000
prob_acceptance_heterogeneous(c, mu, sd, a, b, f, u, USL, n, n_sim)
#> [1] 0.5865018