RuleEvaluationResult Class

Contains the results of evaluating a ControlRuleSet over a control-chart point series.

Definition

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

Remarks

Violations is the canonical, deterministically ordered list of rule violations and is the source of truth for audit and serialization purposes.

ViolationsByIndex is a derived convenience view that maps each point index to all violations whose windows include that index. It is computed lazily on first access.

When serialized to JSON via ToJson(), the result includes both the full canonical violations list and a compact violationsByIndex map suitable for rendering clients. Each entry in the map is a compact reference containing ruleId and triggerIndex only, without duplicating full violation objects.

Properties

EvaluatedRuleSet Gets the name of the rule set used for this evaluation, if any.
HasViolations Gets a value indicating whether any rule violations were detected. Equivalent to Violations.Count > 0.
ViolationIndexes Gets the set of point indexes that are included in at least one violation.
Violations Gets the canonical, deterministically ordered list of detected rule violations. Violations are ordered by TriggerIndex ascending; ties are broken by RuleId in ordinal order.
ViolationsByIndex Gets a map from each point index to the violations whose windows include that index. Computed lazily on first access.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FromJson Reconstructs a RuleEvaluationResult from a JSON string.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToJson Serializes this rule evaluation result to a JSON string.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also