void QCCapIndexes(TVec Data, Double LB, Double UB, ref Double p, ref Double CP, ref Double CPK, ref Double[] CPConfInt, ref Double[] CPKConfInt, Double Alpha)
Process Capability indexes p, Cp and Cpk.
| # | Name | Description |
|---|---|---|
| 1 | Data | Process data. |
| 2 | LB | Lower specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie. |
| 3 | UB | Upper specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie. |
| 4 | Alpha | Desired significance level. |
| 5 | p | Returns calculated significance. |
| 6 | CP | Returns capability index. |
| 7 | CPConfInt | Returns 100*(1-Alpha) Cp confindence interval. |
| 8 | CPK | Returns capability index for uncentred process. |
| 9 | CPKConfInt | Returns 100*(1-Alpha) CPK confidence interval. |
Result: stored in self (calling object)
Remarks:
Calculates the Process Capability indexes p, Cp(aka CPR) and Cpk(AKA CPRk).
Examples
using Dew.Math;
using Dew.Math.Units;
using Dew.Stats.Units;
namespace Dew.Examples
{
private void Example()
{
double p, lb, ub, cp, cpk;
double[] CPConfInt, CPKConfInt;
Vector data = new Vector(0);
lb = -0.1;
ub = 0.1;
data.LoadFromFile("PCDATA.vec");
StatControlCharts.QCCapIndexes(data, lb, ub, out p, out cp, out cpk, out CPConfInt, out CPKConfInt, 0.05);
}
}