Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void QCPChart(TVec *Data, int SampleSize, TVec *DrawVec, double &CL, double &UCL, double &LCL, double Confidence = 0.997); | P-Chart. |
| 2 | void QCPChart(TVec *Data, TVec *SampleSize, TVec *DrawVec, double &CL, TVec *UCL, TVec *LCL, double Confidence = 0.997); | In this case each sample can have different size. You must store sizes in SampleSize vector. |
Overload 1: void QCPChart(TVec *Data, int SampleSize, TVec *DrawVec, double &CL, double &UCL, double &LCL, double Confidence = 0.997);
P-Chart.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | |
| 2 | SampleSize | int | |
| 3 | DrawVec | TVec * | |
| 4 | CL | double & | |
| 5 | UCL | double & | |
| 6 | LCL | double & | |
| 7 | Confidence = 0.997 | double |
Calculates the P-Chart (Control chart for proportions) drawing values, center line, upper and lower control limits. Control limits are based on the normal approximation to the binomial distribution. When p is small, the normal approximation may not always be adequate. In such cases, we may use control limits obtained directly from a table of binomial probabilities. If P is small, the lower control limit obtained from the normal approximation may be a negative number. If this should occur, it is customary to consider zero as the lower control limit.
Note
The assumption is all samples have the same SampleSize.
Overload 2: void QCPChart(TVec *Data, TVec *SampleSize, TVec *DrawVec, double &CL, TVec *UCL, TVec *LCL, double Confidence = 0.997);
In this case each sample can have different size. You must store sizes in SampleSize vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | Data to be analyzed. Each value represents number of defects. |
| 2 | SampleSize | TVec * | Sample size. Can be integer or vector. |
| 3 | DrawVec | TVec * | Returns values to be drawn. |
| 4 | CL | double & | Returns control Chart centerline. |
| 5 | UCL | TVec * | Returns control Chart upper control limit. |
| 6 | LCL | TVec * | Returns control Chart lower control limit. |
| 7 | Confidence = 0.997 | double | Confidence level for upper and lower control limit. Confidence must lie in the (0,1) interval. |
An exeption is raised if Data and SampleSize length do not match.