Process Capability indexes p, Cp and Cpk.
procedure QCCapIndexes(const Data: TVec; const LB: double; const UB: double; out p: double; out CP: double; out CPK: double; var CPConfInt: TTwoElmReal; var CPKConfInt: TTwoElmReal; Alpha: double = 0.05);
Parameters |
Description |
Data |
Process data. |
LB |
Lower specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie. |
UB |
Upper specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie. |
p |
Returns calculated significance. |
CP |
Returns capability index. |
CPK |
Returns capability index for uncentred process. |
CPConfInt |
Returns 100*(1-Alpha) Cp confindence interval. |
CPKConfInt |
Returns 100*(1-Alpha) CPK confidence interval. |
Alpha |
Desired significance level. |
Calculates the Process Capability indexes p, Cp(aka CPR) and Cpk(AKA CPRk).
In the following example capability indexes and their condifence are calculated.
Uses StatControlCharts, MtxExp, Math387; procedure Example; var Data: Vector; p, lb, ub,cp, cpk: double; CPConfInt, CPKConfInt: TTwoElmReal; begin Data.LoadFromFile('PCDATA.vec'); QCCapIndexes(Data,lb,ub,p,cp,cpk,CPConfInt,CPKConfInt, 0.05); end;
#include "MtxExpr.hpp" #include "StatControlCharts.hpp" #include "Math387.hpp" void __fastcall Example(); { sVector Data; double p, lb, ub,cp, cpk; TTwoElmReal CPConfInt; TTwoElmReal CPKConfInt; Data.LoadFromFile("PCDATA.vec"); QCCapIndexes(Data,lb,ub,p,cp,cpk,CPConfInt,CPKConfInt, 0.05); }
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|