You are here: Symbol Reference > Dew.Stats Namespace > StatControlCharts Class > StatControlCharts Methods > QCSChart Method
Dew Stats for .NET
Contents
PreviousUpNext
StatControlCharts.QCSChart Method

S-Chart.

C#
public QCSChart(TMtx Data, TVec DrawVec, ref double CL, ref double UCL, ref double LCL, double Confidence);
Parameters
Parameters 
Description 
Data 
Each Data row contains replicated observation taken at specific time. 
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. 

Calculates S-Chart drawing values, center line, upper and lower control limit.

Place a TChart component on the chart and add a TQCSerie (Series1). The following code creates necessary values for S chart:

using Dew.Math;
using Dew.Math.Units;
using Dew.Stats.Units;
namespace Dew.Examples
{
  private void Example()
  {
    double cl,ucl,lcl;
    Matrix Data = new Matrix(0);
    Vector DrawVec = new Vector(0);
    Data.LoadFromFile("data.mtx"); // data is now initialized
    StatControlCharts.QCSChart(Data,DrawVec,out cl, out ucl, out lcl, 0.025);
  }
}
What do you think about this topic? Send feedback!
Copyright (c) 1999-2010 by Dew Research. All rights reserved.