UChart 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
| UChart( | Initializes a new UChart in the Unfitted state from vectors of defect counts and variable unit sizes. |
| UChart( | Initializes a new UChart in the Unfitted state from a vector of defect counts and a single constant unit size. When the unit size is constant the control limits are identical across all observations. |
UChart(Vector<Double>, Vector<Double>, IIndex)
Initializes a new UChart in the
Unfitted state from vectors of
defect counts and variable unit sizes.
public UChart(
Vector<double> defectCounts,
Vector<double> unitSizes,
IIndex? index = null
)Parameters
- defectCounts Vector<Double>
- The ordered baseline defect counts. Must have the same length as unitSizes.
- unitSizes Vector<Double>
- The unit size (exposure) for each observation. 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 | defectCounts or unitSizes is null. |
| Argument | defectCounts is empty. |
UChart(Vector<Double>, Double, IIndex)
Initializes a new UChart in the
Unfitted state from a vector of
defect counts and a single constant unit size.
When the unit size is constant the control limits are identical
across all observations.
public UChart(
Vector<double> defectCounts,
double unitSize,
IIndex? index = null
)Parameters
- defectCounts Vector<Double>
- The ordered baseline defect counts. All values must be non-negative.
- unitSize Double
- The constant unit size applied to all observations. 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 | defectCounts is null. |
| Argument | defectCounts is empty. |
| Argument | unitSize is not a positive finite number. |