PChart Constructor

Definition

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

Overload List

PChart(Vector<Double>, Vector<Double>, IIndex) Initializes a new PChart in the Unfitted state from vectors of nonconforming counts and variable sample sizes.
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.

PChart(Vector<Double>, Vector<Double>, IIndex)

Initializes a new PChart in the Unfitted state from vectors of nonconforming counts and variable sample sizes.
C#
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

ArgumentNullExceptionnonconformingCounts or sampleSizes is null.
ArgumentExceptionnonconformingCounts 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.
C#
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

ArgumentNullExceptionnonconformingCounts is null.
ArgumentExceptionnonconformingCounts is empty.
ArgumentOutOfRangeExceptionsampleSize is not a positive finite number.

See Also