Control Charts.P 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
| P(Read | Computes a P (fraction nonconforming) chart from spans of defect counts and subgroup sample sizes. |
| P(Vector<Double>, Vector<Double>) | Computes a P (fraction nonconforming) chart from a vector of defect counts and a vector of subgroup sample sizes. |
| P(Vector<Double>, Vector<Double>, RateBaseline) | Computes a P (fraction nonconforming) chart from a vector of defect counts and sample sizes in Phase II mode, evaluating against a frozen baseline from a prior Phase I analysis. |
P(ReadOnlySpan<Double>, ReadOnlySpan<Double>)
Computes a P (fraction nonconforming) chart from spans of defect counts
and subgroup sample sizes.
public static PChartData P(
ReadOnlySpan<double> defectCounts,
ReadOnlySpan<double> sampleSizes
)Parameters
- defectCounts ReadOnlySpan<Double>
- The ordered sequence of nonconforming-unit counts, one per subgroup.
- sampleSizes ReadOnlySpan<Double>
- The ordered sequence of subgroup sample sizes, one per subgroup. All values must be positive.
Return Value
PChartDataThe chart-ready data for the P chart.
Exceptions
| Argument | The inputs are empty, have mismatched lengths, contain non-finite values, contain negative counts, contain non-positive sample sizes, or any count exceeds its corresponding sample size. |
P(Vector<Double>, Vector<Double>)
Computes a P (fraction nonconforming) chart from a vector of defect counts
and a vector of subgroup sample sizes.
public static PChartData P(
Vector<double> defectCounts,
Vector<double> sampleSizes
)Parameters
- defectCounts Vector<Double>
- The ordered sequence of nonconforming-unit counts, one per subgroup.
- sampleSizes Vector<Double>
- The ordered sequence of subgroup sample sizes, one per subgroup. All values must be positive.
Return Value
PChartDataThe chart-ready data for the P chart.
Exceptions
| Argument | defectCounts or sampleSizes is null. |
| Argument | The inputs are empty, have mismatched lengths, contain non-finite values, contain negative counts, contain non-positive sample sizes, or any count exceeds its corresponding sample size. |
P(Vector<Double>, Vector<Double>, RateBaseline)
Computes a P (fraction nonconforming) chart from a vector of defect
counts and sample sizes in Phase II mode, evaluating against a frozen
baseline from a prior Phase I analysis.
public static PChartData P(
Vector<double> defectCounts,
Vector<double> sampleSizes,
RateBaseline baseline
)Parameters
- defectCounts Vector<Double>
- The ordered sequence of nonconforming-unit counts, one per subgroup.
- sampleSizes Vector<Double>
- The ordered sequence of subgroup sample sizes, one per subgroup. All values must be positive.
- baseline RateBaseline
- The frozen Phase I baseline to evaluate against.
Return Value
PChartDataThe chart-ready data for the P chart, with control limits derived from the frozen baseline.
Exceptions
| Argument | defectCounts, sampleSizes, or baseline is null. |