StatControlCharts::QCCapIndexes Function

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.

#NameTypeDescription
1DataTVec *Process data.
2LBconst doubleLower specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie.
3UBconst doubleUpper specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie.
4pdouble &Returns calculated significance.
5CPdouble &Returns capability index.
6CPKdouble &Returns capability index for uncentred process.
7CPConfIntDewArray<double> &Returns 100*(1-Alpha) Cp confindence interval.
8CPKConfIntDewArray<double> &Returns 100*(1-Alpha) CPK confidence interval.
9Alpha = 0.05doubleDesired 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