RuleEvaluationContext Class

Provides the data context for evaluating a process control rule against a chart series.

Definition

Namespace: Numerics.NET.Statistics.ProcessControl
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
C#
public sealed class RuleEvaluationContext
Inheritance
Object  →  RuleEvaluationContext

Remarks

RuleEvaluationContext is the canonical contract between a control series and the rule engine. A series creates a context that captures its geometry; rules evaluate that context and decide whether they are applicable.

RuleEvaluationContext exposes semantic helpers so that rule implementations can be written correctly without depending on the internal storage layout of any particular series type.

Obtain a context by calling EvaluateRules(ControlRuleSet) on a fitted series, which creates the context automatically. You can also pass a ControlRuleSet directly to Evaluate(RuleEvaluationContext) once you hold a context.

Properties

CenterLine Gets the center line value for this series, representing the estimated process mean or baseline rate.
PointCountGets the number of points in the series.
SupportsRunRules Gets a value indicating whether run/trend/alternation pattern rules are applicable for this context.
SupportsSigmaZones Gets a value indicating whether sigma-zone comparisons are meaningful for this context.

Methods

CompareToCenterLine Returns the sign of the difference between the point at the specified index and the center line.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLowerControlLimit Gets the lower control limit at the specified index. For fixed-limit series this is the same scalar for every index; for pointwise-limit series it is the per-point value.
GetPoint Gets the value of the chart statistic at the specified index.
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetUpperControlLimit Gets the upper control limit at the specified index. For fixed-limit series this is the same scalar for every index; for pointwise-limit series it is the per-point value.
IsAboveUpperControlLimit Returns whether the point at the specified index is strictly above the upper control limit.
IsBelowLowerControlLimit Returns whether the point at the specified index is strictly below the lower control limit.
IsBeyondControlLimits Returns whether the point at the specified index is strictly beyond either the upper or the lower control limit.
IsBeyondLowerSigma Returns whether the point at the specified index lies beyond multiple sigma below the center line.
IsBeyondSigma Returns whether the point at the specified index lies beyond multiple sigma from the center line on either side.
IsBeyondUpperSigma Returns whether the point at the specified index lies beyond multiple sigma above the center line.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also