ProcessAnalysis.AnalyzeNP Method

Performs an NP (number nonconforming) chart analysis on the supplied defect counts with a constant sample size.

Definition

Namespace: Numerics.NET.Statistics.ProcessControl
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
C#
public static ProcessAnalysisResult<NpChartData> AnalyzeNP(
	Vector<double> defectCounts,
	double sampleSize,
	ControlRuleSet? ruleSet = null,
	StandardBaseline? baseline = null
)

Parameters

defectCounts  Vector<Double>
The ordered sequence of defect counts, one per subgroup.
sampleSize  Double
The constant sample size used for all subgroups.
ruleSet  ControlRuleSet  (Optional)
Optional rule set used to evaluate rules on the NP series. When null no rule evaluation is performed.
baseline  StandardBaseline  (Optional)
When non-null, runs in Phase II mode: the count center line, limits, and sample size are taken from the frozen baseline; sampleSize is ignored. Defaults to null (Phase I).

Return Value

ProcessAnalysisResult<NpChartData>
A ProcessAnalysisResult<TChartData> containing chart data and diagnostics.

Exceptions

ArgumentNullExceptiondefectCounts is null.
ArgumentException The input is empty, contains non-finite values, or contains invalid defect counts.
ArgumentOutOfRangeExceptionsampleSize is not positive.

See Also