CapabilityDiagnostics.Analyze Method

Definition

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

Overload List

Analyze(Matrix<Double>, ControlRuleSet, Double, NormalityTestKind) Computes assumption diagnostics for the supplied matrix of subgroup observations.
Analyze(ReadOnlySpan<Double>, ControlRuleSet, Double, NormalityTestKind) Computes assumption diagnostics for the supplied span of individual observations.
Analyze(Vector<Double>, ControlRuleSet, Double, NormalityTestKind) Computes assumption diagnostics for the supplied vector of individual observations.
Analyze(Vector<Double>, IGrouping, ControlRuleSet, Double, NormalityTestKind) Computes assumption diagnostics for the supplied vector of observations with an associated grouping.

Analyze(Matrix<Double>, ControlRuleSet, Double, NormalityTestKind)

Computes assumption diagnostics for the supplied matrix of subgroup observations.
C#
public static CapabilityAssumptionDiagnostics Analyze(
	Matrix<double> subgroups,
	ControlRuleSet? ruleSet = null,
	double significanceLevel = 0.05,
	NormalityTestKind normalityTest = NormalityTestKind.AndersonDarling
)

Parameters

subgroups  Matrix<Double>
A matrix whose rows are ordered subgroups and whose columns are measurements within each subgroup.
ruleSet  ControlRuleSet  (Optional)
Optional rule set used to detect out-of-control signals.
significanceLevel  Double  (Optional)
The significance level for the normality test. Must be in (0, 1). Defaults to 0.05.
normalityTest  NormalityTestKind  (Optional)
The normality test to apply. Defaults to AndersonDarling.

Return Value

CapabilityAssumptionDiagnostics
A CapabilityAssumptionDiagnostics containing the normality test result and advisory diagnostics.

Exceptions

ArgumentNullExceptionsubgroups is null.
ArgumentOutOfRangeExceptionsignificanceLevel is not in (0, 1).
ArgumentExceptionnormalityTest is not a valid NormalityTestKind value, or the selected test is incompatible with the supplied data.

Analyze(ReadOnlySpan<Double>, ControlRuleSet, Double, NormalityTestKind)

Computes assumption diagnostics for the supplied span of individual observations.
C#
public static CapabilityAssumptionDiagnostics Analyze(
	ReadOnlySpan<double> observations,
	ControlRuleSet? ruleSet = null,
	double significanceLevel = 0.05,
	NormalityTestKind normalityTest = NormalityTestKind.AndersonDarling
)

Parameters

observations  ReadOnlySpan<Double>
The ordered sequence of individual measurements.
ruleSet  ControlRuleSet  (Optional)
Optional rule set used to detect out-of-control signals.
significanceLevel  Double  (Optional)
The significance level for the normality test. Must be in (0, 1). Defaults to 0.05.
normalityTest  NormalityTestKind  (Optional)
The normality test to apply. Defaults to AndersonDarling.

Return Value

CapabilityAssumptionDiagnostics
A CapabilityAssumptionDiagnostics containing the normality test result and advisory diagnostics.

Exceptions

ArgumentOutOfRangeExceptionsignificanceLevel is not in (0, 1).
ArgumentExceptionnormalityTest is not a valid NormalityTestKind value, or the selected test is incompatible with the supplied data.

Analyze(Vector<Double>, ControlRuleSet, Double, NormalityTestKind)

Computes assumption diagnostics for the supplied vector of individual observations.
C#
public static CapabilityAssumptionDiagnostics Analyze(
	Vector<double> observations,
	ControlRuleSet? ruleSet = null,
	double significanceLevel = 0.05,
	NormalityTestKind normalityTest = NormalityTestKind.AndersonDarling
)

Parameters

observations  Vector<Double>
The ordered sequence of individual measurements.
ruleSet  ControlRuleSet  (Optional)
Optional rule set used to detect out-of-control signals. When nullHasOutOfControlSignals is always false.
significanceLevel  Double  (Optional)
The significance level for the normality test. Must be in (0, 1). Defaults to 0.05.
normalityTest  NormalityTestKind  (Optional)
The normality test to apply. Defaults to AndersonDarling.

Return Value

CapabilityAssumptionDiagnostics
A CapabilityAssumptionDiagnostics containing the normality test result and advisory diagnostics.

Exceptions

ArgumentNullExceptionobservations is null.
ArgumentOutOfRangeExceptionsignificanceLevel is not in (0, 1).
ArgumentExceptionnormalityTest is not a valid NormalityTestKind value, or the selected test is incompatible with the supplied data.

Analyze(Vector<Double>, IGrouping, ControlRuleSet, Double, NormalityTestKind)

Computes assumption diagnostics for the supplied vector of observations with an associated grouping.
C#
public static CapabilityAssumptionDiagnostics Analyze(
	Vector<double> observations,
	IGrouping grouping,
	ControlRuleSet? ruleSet = null,
	double significanceLevel = 0.05,
	NormalityTestKind normalityTest = NormalityTestKind.AndersonDarling
)

Parameters

observations  Vector<Double>
The ordered sequence of measurements.
grouping  IGrouping
The grouping that assigns each observation to a subgroup.
ruleSet  ControlRuleSet  (Optional)
Optional rule set used to detect out-of-control signals.
significanceLevel  Double  (Optional)
The significance level for the normality test. Must be in (0, 1). Defaults to 0.05.
normalityTest  NormalityTestKind  (Optional)
The normality test to apply. Defaults to AndersonDarling.

Return Value

CapabilityAssumptionDiagnostics
A CapabilityAssumptionDiagnostics containing the normality test result and advisory diagnostics.

Exceptions

ArgumentNullExceptionobservations or grouping is null.
ArgumentOutOfRangeExceptionsignificanceLevel is not in (0, 1).
ArgumentExceptionnormalityTest is not a valid NormalityTestKind value, or the selected test is incompatible with the supplied data.

See Also