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
and for semicurtailed inspection, the average sample number is
where