Rule Evaluation Context Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
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
| Center | Gets the center line value for this series, representing the estimated process mean or baseline rate. |
| Point | Gets the number of points in the series. |
| Supports | Gets a value indicating whether run/trend/alternation pattern rules are applicable for this context. |
| Supports | Gets a value indicating whether sigma-zone comparisons are meaningful for this context. |
Methods
| Compare | Returns the sign of the difference between the point at the specified index and the center line. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Get | Serves as the default hash function. (Inherited from Object) |
| Get | 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. |
| Get | Gets the value of the chart statistic at the specified index. |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| Get | 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. |
| IsAbove | Returns whether the point at the specified index is strictly above the upper control limit. |
| IsBelow | Returns whether the point at the specified index is strictly below the lower control limit. |
| IsBeyond | Returns whether the point at the specified index is strictly beyond either the upper or the lower control limit. |
| IsBeyond | Returns whether the point at the specified index lies beyond multiple sigma below the center line. |
| IsBeyond | Returns whether the point at the specified index lies beyond multiple sigma from the center line on either side. |
| IsBeyond | Returns whether the point at the specified index lies beyond multiple sigma above the center line. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |