You are here: Symbol Reference > StatControlCharts Namespace > Functions > StatControlCharts.QCCapIndexes Function
Stats Master VCL
ContentsIndex
Example

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.