computes the average sample number for a double-sampling plan.
ASN2(mode,
)
where
|
mode |
identifies whether sampling is under full inspection (mode is 'FULL') or semicurtailed inspection (mode is 'SEMI'). |
|
|
is the acceptance number for the first sample, where |
|
|
is the rejection number for the first sample, where |
|
|
is the acceptance number for the second sample, where |
|
|
is the size of the first sample, where |
|
|
is the size of the second sample, where |
|
p |
is the proportion of nonconforming items produced by the process, where 0 < p < 1. |
The ASN2 function returns the average sample number for a Type B double-sampling plan under full inspection (mode is 'FULL') or semicurtailed inspection (mode is 'SEMI'). For details on Type B double-sampling plans, see Types of Sampling Plans.
For full inspection, the average sample number is
![\[ \mbox{ASN}=n_{1}+n_{2}[F(r_{1}-1|n_{1})- F(a_{1}|n_{1})] \]](images/qcug_functions0022.png)
and for semicurtailed inspection, the average sample number is
![\[ \mbox{ASN}=n_{1}+ \sum _{d=a_{1}+1}^{r_{1}-1} f(d|n_{1}) \left( n_{2}F(a_{2}-d|n_{2}) + \frac{r_{2}-d}{p} [1- F(r_{2}-d|n_{2}+1)] \right) \]](images/qcug_functions0023.png)
where
