Calculates the Process Capability indexes p, Cp and Cpk.
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);
}
}