procedure QCRChart(const Data: TMtx; const DrawVec: TVec; out CL: Double; out UCL: Double; out LCL: Double; Confidence: Double);
R-Chart.
| # | Name | Description |
|---|---|---|
| 1 | Data | Each Data row contains replicated observation taken at specific time. |
| 2 | Confidence | Confidence level for upper and lower control limit. Confidence must lie in the (0,1) interval. |
| 3 | DrawVec | Returns values to be drawn. |
| 4 | CL | Returns control Chart centerline. |
| 5 | UCL | Returns control Chart upper control limit. |
| 6 | LCL | Returns control Chart lower control limit. |
Result: stored in self (calling object)
Remarks:
Calculates R-Chart drawing values, center line, upper and lower control limit.
Examples
Uses StatSeries,StatControlCharts, MtxExp, Math387, MtxVecTee;
procedure Example;
var CL, UCL, LCL : double;
Data: Matrix;
DrawVec: Vector;
begin
Data.LoadFromFile('ewma_data.mtx');
QCRChart(Data,DrawVec,CL,UCL,LCL,0.025);
// setup limit lines
Series1.UCL := UCL;
Series1.LCL := LCL;
Series1.CL := CL;
// now draw actual data
DrawValues(DrawVec,Series1);
end;
See Also: !:TQCSeries, QCSeries, StatControlCharts.QCXChart, StatControlCharts.QCSChart