XBarSChartSet Constructor

Definition

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

Overload List

XBarSChartSet(Matrix<Double>, IIndex) Initializes a new XBarSChartSet in the Unfitted state from a subgroup matrix.
XBarSChartSet(ReadOnlySpan<Double>, Int32, IIndex) Initializes a new XBarSChartSet in the Unfitted state from a flat span of observations and a fixed subgroup size.
XBarSChartSet(Vector<Double>, IGrouping, IIndex) Initializes a new XBarSChartSet in the Unfitted state from a vector of observations and a grouping that defines subgroup membership.

XBarSChartSet(Matrix<Double>, IIndex)

Initializes a new XBarSChartSet in the Unfitted state from a subgroup matrix.
C#
public XBarSChartSet(
	Matrix<double> data,
	IIndex? index = null
)

Parameters

data  Matrix<Double>
A matrix whose rows are ordered subgroups and whose columns are measurements within each subgroup. Must contain at least one subgroup with at least two measurements per subgroup.
index  IIndex  (Optional)
An optional index providing labels or time positions for each subgroup. When null a default positional index is used.

Exceptions

ArgumentNullExceptiondata is null.
ArgumentExceptiondata is empty or has fewer than two columns.

XBarSChartSet(ReadOnlySpan<Double>, Int32, IIndex)

Initializes a new XBarSChartSet in the Unfitted state from a flat span of observations and a fixed subgroup size.
C#
public XBarSChartSet(
	ReadOnlySpan<double> data,
	int subgroupSize,
	IIndex? index = null
)

Parameters

data  ReadOnlySpan<Double>
The flat sequence of observations. The length must be a multiple of subgroupSize.
subgroupSize  Int32
The number of measurements in each subgroup. Must be at least 2.
index  IIndex  (Optional)
An optional index providing labels for each subgroup. When null a default positional index is used.

Exceptions

ArgumentExceptiondata is empty, its length is not a multiple of subgroupSize, or subgroupSize is less than 2.

XBarSChartSet(Vector<Double>, IGrouping, IIndex)

Initializes a new XBarSChartSet in the Unfitted state from a vector of observations and a grouping that defines subgroup membership.
C#
public XBarSChartSet(
	Vector<double> data,
	IGrouping grouping,
	IIndex? index = null
)

Parameters

data  Vector<Double>
The ordered observations.
grouping  IGrouping
The grouping that assigns each observation to a subgroup. Variable subgroup sizes are supported for XBar-S.
index  IIndex  (Optional)
An optional index providing labels for each subgroup. When null the grouping index is used.

Exceptions

ArgumentNullExceptiondata or grouping is null.

See Also