R/prob_acceptance_homogeneous.R
prob_acceptance_homogeneous.Rd
prob_acceptance_homogeneous
provides a probability of acceptance in the original sample when samples collected from a homogeneous batch.
prob_acceptance_homogeneous(c, lambda, a, b, f, u, USL, n, n_sim)
acceptance number
the expected cell count (\(\lambda\)).
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 the diluted sample collected from a homogeneous batch.
prob_detection_homogeneous
provides a probability of acceptance when samples collected from a homogeneous batch (this section will be updated later on).
c <- 2
lambda <- 2000
a <- 0
b <- 300
f <- 0.001
u <- 0.1
USL <- 1000
n <- 5
n_sim <- 50000
prob_acceptance_homogeneous(c, lambda, a, b, f, u, USL, n, n_sim)
#> [1] 0