Quality Control D4 Factor.
double QCD4( UINT nn )
Quality Control D4 Factor for determining the 3-sigma upper control limit for R charts (Range of Sample Charts) from the average range. The Upper Control Limit for R=(factor)*(Average Range). The calculations for the factors are based on the normal distribution.
dD4=QCD4(nn); // results in dD4==1.744