ControlCharts.NP Method

Definition

Namespace: Numerics.NET.Statistics.ProcessControl
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0

Overload List

NP(ReadOnlySpan<Double>, Double) Computes an NP (number nonconforming) chart from a span of defect counts and a constant subgroup sample size.
NP(Vector<Double>, StandardBaseline) Computes an NP (number nonconforming) chart from a vector of defect counts in Phase II mode, evaluating against a frozen baseline from a prior Phase I analysis. The sample size is taken from the baseline.
NP(Vector<Double>, Double) Computes an NP (number nonconforming) chart from a vector of defect counts and a constant subgroup sample size.

NP(ReadOnlySpan<Double>, Double)

Computes an NP (number nonconforming) chart from a span of defect counts and a constant subgroup sample size.
C#
public static NpChartData NP(
	ReadOnlySpan<double> defectCounts,
	double sampleSize
)

Parameters

defectCounts  ReadOnlySpan<Double>
The ordered sequence of nonconforming-unit counts, one per subgroup.
sampleSize  Double
The constant sample size applied to all subgroups. Must be positive.

Return Value

NpChartData
The chart-ready data for the NP chart.

Exceptions

ArgumentException The input is empty, contains non-finite values, contains negative counts, or any count exceeds sampleSize.
ArgumentOutOfRangeExceptionsampleSize is not positive.

NP(Vector<Double>, StandardBaseline)

Computes an NP (number nonconforming) chart from a vector of defect counts in Phase II mode, evaluating against a frozen baseline from a prior Phase I analysis. The sample size is taken from the baseline.
C#
public static NpChartData NP(
	Vector<double> defectCounts,
	StandardBaseline baseline
)

Parameters

defectCounts  Vector<Double>
The ordered sequence of nonconforming-unit counts, one per subgroup.
baseline  StandardBaseline
The frozen Phase I baseline to evaluate against.

Return Value

NpChartData
The chart-ready data for the NP chart, with control limits derived from the frozen baseline.

Exceptions

ArgumentNullExceptiondefectCounts or baseline is null.

NP(Vector<Double>, Double)

Computes an NP (number nonconforming) chart from a vector of defect counts and a constant subgroup sample size.
C#
public static NpChartData NP(
	Vector<double> defectCounts,
	double sampleSize
)

Parameters

defectCounts  Vector<Double>
The ordered sequence of nonconforming-unit counts, one per subgroup.
sampleSize  Double
The constant sample size applied to all subgroups. Must be positive.

Return Value

NpChartData
The chart-ready data for the NP chart.

Exceptions

ArgumentNullExceptiondefectCounts is null.
ArgumentException The input is empty, contains non-finite values, contains negative counts, or any count exceeds sampleSize.
ArgumentOutOfRangeExceptionsampleSize is not positive.

See Also