XBar SChart Set 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
| XBar | Initializes a new XBarSChartSet in the Unfitted state from a subgroup matrix. |
| XBar | Initializes a new XBarSChartSet in the Unfitted state from a flat span of observations and a fixed subgroup size. |
| XBar | 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.
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
| Argument | data is null. |
| Argument | data 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.
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
| Argument | data 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.
public XBarSChartSet(
Vector<double> data,
IGrouping grouping,
IIndex? index = null
)Parameters
Exceptions
| Argument | data or grouping is null. |