Control Charts.NP Method
Definition
Namespace: Numerics.NET.Statistics.ProcessControl
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
Overload List
| NP( | Computes an NP (number nonconforming) chart from a span of defect counts and a constant subgroup sample size. |
| NP( | 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( | 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.
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
NpChartDataThe chart-ready data for the NP chart.
Exceptions
| Argument | The input is empty, contains non-finite values, contains negative counts, or any count exceeds sampleSize. |
| Argument | sampleSize 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.
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
NpChartDataThe chart-ready data for the NP chart, with control limits derived from the frozen baseline.
Exceptions
| Argument | defectCounts 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.
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
NpChartDataThe chart-ready data for the NP chart.
Exceptions
| Argument | defectCounts is null. |
| Argument | The input is empty, contains non-finite values, contains negative counts, or any count exceeds sampleSize. |
| Argument | sampleSize is not positive. |