Skip to main content

RunRule

Trait RunRule 

Source
pub trait RunRule {
    // Required method
    fn check(
        &self,
        points: &[ChartPoint],
        limits: &ControlLimits,
    ) -> Vec<(usize, ViolationType)>;
}
Expand description

Trait for applying run rules to chart data.

Run rules detect non-random patterns that indicate special causes of variation even when individual points remain within control limits.

Required Methods§

Source

fn check( &self, points: &[ChartPoint], limits: &ControlLimits, ) -> Vec<(usize, ViolationType)>

Check points against this rule set and return violations per point index.

Returns a vector of (point_index, violation_type) pairs. A single point may appear multiple times if it triggers multiple rules.

Implementors§