PChart Constructor
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
| PChart( | Initializes a new PChart in the Unfitted state from vectors of nonconforming counts and variable sample sizes. |
| PChart( | Initializes a new PChart in the Unfitted state from a vector of nonconforming counts and a single constant sample size. When the sample size is constant the control limits are identical across all subgroups. |
PChart(Vector<Double>, Vector<Double>, IIndex)
Initializes a new PChart in the
Unfitted state from vectors of
nonconforming counts and variable sample sizes.
public PChart(
Vector<double> nonconformingCounts,
Vector<double> sampleSizes,
IIndex? index = null
)Parameters
- nonconformingCounts Vector<Double>
- The ordered baseline counts of nonconforming items. Must have the same length as sampleSizes.
- sampleSizes Vector<Double>
- The sample size for each subgroup. Must contain only positive finite values.
- index IIndex (Optional)
- An optional index providing labels or time positions for each observation. When null a default positional index is used.
Exceptions
| Argument | nonconformingCounts or sampleSizes is null. |
| Argument | nonconformingCounts is empty. |
PChart(Vector<Double>, Double, IIndex)
Initializes a new PChart in the
Unfitted state from a vector of
nonconforming counts and a single constant sample size.
When the sample size is constant the control limits are identical
across all subgroups.
public PChart(
Vector<double> nonconformingCounts,
double sampleSize,
IIndex? index = null
)Parameters
- nonconformingCounts Vector<Double>
- The ordered baseline counts of nonconforming items. All values must be non-negative and must not exceed sampleSize.
- sampleSize Double
- The constant sample size applied to all subgroups. Must be a positive finite number.
- index IIndex (Optional)
- An optional index providing labels or time positions for each observation. When null a default positional index is used.
Exceptions
| Argument | nonconformingCounts is null. |
| Argument | nonconformingCounts is empty. |
| Argument | sampleSize is not a positive finite number. |