WesternElectricRulesResult

data class WesternElectricRulesResult(val rule1: IntArray, val rule2: IntArray, val rule3: IntArray, val rule4: IntArray)(source)

Indices of observations that violate each of the four Western Electric Rules.

The Western Electric Rules (WER) are a set of heuristics for detecting non-random patterns on a control chart beyond the basic 3σ limit check. Each rule flags a different kind of abnormality — a single extreme excursion, clusters of moderate excursions, or a prolonged shift — so applying them together gives a Shewhart-style chart substantially more power to detect small, sustained changes in the process mean.

For each rule, the corresponding array contains the zero-based indices of the observations at which the rule fires. The index marks the trigger point — the observation whose arrival completes the offending pattern. All arrays are sorted in ascending order and an observation may appear in more than one array.

See also

Constructors

Link copied to clipboard
constructor(rule1: IntArray, rule2: IntArray, rule3: IntArray, rule4: IntArray)

Properties

Link copied to clipboard

indices of single points beyond ±3σ from the center line.

Link copied to clipboard

indices at which 2 of the last 3 consecutive points (including this one) lie beyond ±2σ on the same side of the center line.

Link copied to clipboard

indices at which 4 of the last 5 consecutive points (including this one) lie beyond ±1σ on the same side of the center line.

Link copied to clipboard

indices at which the last 8 consecutive points (including this one) all lie strictly on the same side of the center line, regardless of magnitude.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String