Rule5: Rule 5

Description Usage Arguments Details Value Examples

Description

Two out of three consecutive points beyond the 2*sigma limits on same side of center line.

Usage

1
Rule5(x, zoneB, minNPoints = 2, nPoints = 3, ...)

Arguments

x

Numerical vector

zoneB

Vector of zone borders

minNPoints

Minimal number of points in a sequence violating a rule

nPoints

Sequence of consequtive points to be evaluated

...

unspecified arguments of a function

Details

0 means: ok
1 means: violation

inequality used during evaluation
Rule is violated also if the first two points are beyond the 2*sigma limits During calculation of EvaluateRules function wiht controlLimitDistance <= 2, the evaluation of this rule is suppressed

Value

Vector of the same length as x

Examples

1
2
3
4
limits = CalculateLimits(x = rnorm(10), lcl = NA, cl = 100, ucl = NA, type = 'i')
zones = CalculateZoneBorders(limits)
Rule5(x = rnorm(20), zoneB = zones, minNPoints = 2, nPoints = 3)
#zones is object created by function CalculateZoneBorders()

Rspc documentation built on May 2, 2019, 9:19 a.m.