ProcessAnalysis.AnalyzeP Method

Performs a P (fraction nonconforming) chart analysis on the supplied defect counts and sample sizes.

Definition

Namespace: Numerics.NET.Statistics.ProcessControl
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
C#
public static ProcessAnalysisResult<PChartData> AnalyzeP(
	Vector<double> defectCounts,
	Vector<double> sampleSizes,
	ControlRuleSet? ruleSet = null,
	RateBaseline? baseline = null
)

Parameters

defectCounts  Vector<Double>
The ordered sequence of defect counts, one per subgroup.
sampleSizes  Vector<Double>
The sample sizes corresponding to each subgroup in defectCounts.
ruleSet  ControlRuleSet  (Optional)
Optional rule set used to evaluate rules on the P series. When null no rule evaluation is performed.
baseline  RateBaseline  (Optional)
When non-null, runs in Phase II mode: the fraction nonconforming center line and limits are taken from the frozen baseline. Defaults to null (Phase I).

Return Value

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

Exceptions

ArgumentNullExceptiondefectCounts or sampleSizes is null.
ArgumentException The inputs are empty, have mismatched lengths, contain non-finite values, or contain invalid defect counts or sample sizes.

See Also