CChart Class

A v2 SPC chart for monitoring defect counts per inspection unit (C chart). Implements the full Unfitted → Fitted → Deployed → Apply lifecycle defined by ControlChart.

Definition

Namespace: Numerics.NET.Statistics.ProcessControl
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
C#
public sealed class CChart : ControlChart<CChart>
Inheritance
Object  →  ControlChart  →  ControlChart<CChart>  →  CChart

Remarks

The C chart is used when the number of defects per constant inspection unit is being monitored. Phase-I control limits are estimated from a baseline data set; the deployed chart can then be serialized and applied to future inspection batches without re-estimation.

Typical usage:

C#
double[] baseline = { 3, 1, 4, 2, 5, 1, 3, 2, 4, 3 };

// Phase I — establish limits
CChart chart = new CChart(Vector.Create(baseline));
chart.Analyze();

// Deploy for production monitoring
CChart deployed = (CChart)chart.Deploy();

// Persist and restore
string json = deployed.ToJson();
CChart restored = CChart.FromJson(json);

// Phase II — apply to new observations
double[] production = { 2, 3, 1, 4, 2 };
CChart applied = (CChart)restored.Apply(Vector.Create(production));

Constructors

CChart Initializes a new CChart in the Unfitted state from a vector of defect counts.

Properties

AverageDefectCount Gets the average defect count (c̄) computed during phase-I analysis, which serves as the chart center line.
Series Gets the C chart series. Contains the analyzed defect counts and the computed control limits.
State Gets the current lifecycle state of this chart.
(Inherited from ControlChart)

Methods

Analyze Performs phase-I analysis, establishing control limits and transitioning the chart from Unfitted to Fitted.
(Inherited from ControlChart)
Apply Applies new observations to this Deployed chart and returns a new TChart in the Fitted state.
(Inherited from ControlChart<TChart>)
CreateDeployed Creates a CChart directly in the Deployed state from externally supplied fitted parameters.
Deploy Creates a new TChart in the Deployed state from this Fitted chart.
(Inherited from ControlChart<TChart>)
Diagnose Produces a diagnostic report for the current chart state.
(Inherited from ControlChart)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FromJson Reconstructs a CChart from a JSON string previously produced by ToJson().
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToJson Serializes this CChart to a JSON string.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also