Dew Stats Master .NET
QCCapIndexes Routine
Summary
Calculates the Process Capability indexes p, Cp and Cpk.

Unit
StatControlCharts

Declaration
Procedure QCCapIndexes(Data: TVec; LB, UB: TSample; out p, CP, CPK: TSample; out CPConfInt, CPKConfInt: TTwoElmReal; Alpha: TSample = 0.05);
 Parameter  Description 
Data Process data. 
LB,UB Lower and upper specification limit. LB and UB are boundaries within which measurements on a product characteristic must lie. 
Alpha Desired significance level. 
Returns calculated significance. 
CP Returns capability index. 
CPConfInt Returns 100*(1-Alpha) Cp confindence interval. 
CPK Returns capability index for uncentred process. 
CPKConfInt Returns 100*(1-Alpha) CPK confidence interval. 

Description
Calculates the Process Capability indexes p, Cp(aka CPR) and Cpk(AKA CPRk).
Categories
Control charts

Example 1

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: TSample; CPConfInt, CPKConfInt: TTwoElmReal; begin Data.LoadFromFile('PCDATA.vec'); QCCapIndexes(Data,lb,ub,p,cp,cpk,CPConfInt,CPKConfInt, 0.05); end;
#include "MtxVecCpp.h" #include "StatControlCharts.hpp" #include "Math387.hpp" void __fastcall Example(); { Vector Data; double p, lb, ub,cp, cpk; double[] CPConfInt = new double[2]; double[] CPKConfInt = new double[2]; Data->LoadFromFile("PCDATA.vec"); QCCapIndexes(Data,lb,ub,p,cp,cpk,CPConfInt,CPKConfInt, 0.05); }
using Dew.Math; using Dew.Math.Units; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector data = new Vector(0); data.LoadFromFile("PCDATA.vec"); StatControlCharts.QCCapIndexes(Data,out lb,out ub,out p,out cp,out cpk,out CPConfInt,out CPKConfInt, 0.05); } }


Copyright 2008 Dew Research
http://www.dewresearch.com