You are here: Symbol Reference > Dew.Stats Namespace > StatControlCharts Class > StatControlCharts Methods > QCPChart Method > QCPChart Method (TVec, TVec, TVec, TSample, TVec, TVec, TSample)
Dew Stats for .NET
Contents
PreviousUpNext
StatControlCharts.QCPChart Method (TVec, TVec, TVec, TSample, TVec, TVec, TSample)

In this case each sample can have different size. You must store sizes in SampleSize vector.

C#
public QCPChart(TVec Data, TVec SampleSize, TVec DrawVec, ref double CL, TVec UCL, TVec LCL, double Confidence);
Parameters
Parameters 
Description 
Data 
Data to be analyzed. Each value represents number of defects. 
SampleSize 
Sample size. Can be integer or vector. 
DrawVec 
Returns values to be drawn. 
CL 
Returns control Chart centerline. 
UCL 
Returns control Chart upper control limit. 
LCL 
Returns control Chart lower control limit. 
Confidence 
Confidence level for upper and lower control limit. Confidence must lie in the (0,1) interval. 

An exeption is raised if Data and SampleSize length do not match.

The following code will create P chart:

using Dew.Math;
using Dew.Math.Units;
using Dew.Stats.Units;
namespace Dew.Examples
{
  private void Example(Dew.Stats.QCSeries QCSeries1)
  {
    Vector drawvec = new Vector(0);
    Matrix data = new Matrix(0,0);
    double cl,lcl,ucl;
    StatControlCharts.QCPChart(data,drawvec,out cl,out ucl,out lcl,0.05);
    // Setup series properties
    QCSeries->UCL = ucl;
    QCSeries->LCL = lcl;
    QCSeries->CL = cl;
    MtxVecTee.DrawValues(drawVec,QCSeries1,0,1,false);
  }
}
What do you think about this topic? Send feedback!
Copyright (c) 1999-2010 by Dew Research. All rights reserved.