void QCCapIndexes(TVec *Data, const double LB, const double UB, double &p, double &CP, double &CPK, DewArray<double> &CPConfInt, DewArray<double> &CPKConfInt, double Alpha = 0.05);
Process Capability indexes p, Cp and Cpk.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Data | TVec * | Process data. |
| 2 | LB | const double | Lower specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie. |
| 3 | UB | const double | Upper specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie. |
| 4 | p | double & | Returns calculated significance. |
| 5 | CP | double & | Returns capability index. |
| 6 | CPK | double & | Returns capability index for uncentred process. |
| 7 | CPConfInt | DewArray<double> & | Returns 100*(1-Alpha) Cp confindence interval. |
| 8 | CPKConfInt | DewArray<double> & | Returns 100*(1-Alpha) CPK confidence interval. |
| 9 | Alpha = 0.05 | double | Desired significance level. |
Remarks:
Calculates the Process Capability indexes p, Cp(aka CPR) and Cpk(AKA CPRk).
Examples
#include "MtxExpr.h"
#include "Units.StatControlCharts.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Stats;
using namespace Dew::Stats::Units::StatControlCharts;
void Example()
{
double p, lb, ub, cp, cpk;
DewArray<double> CPConfInt(2), CPKConfInt(2);
Vector data(0);
lb = -0.1;
ub = 0.1;
data.Size(100);
data.RandGauss(0.0, 0.03);
QCCapIndexes(data, lb, ub, p, cp, cpk, CPConfInt, CPKConfInt, 0.05);
}
Declared in Dew::Stats::Units::StatControlCharts · Dew.Stats/Units.StatControlCharts.h · Cross-compiler