Skip to main content

system.kanoa.quality.spc.rule5(valueList, mean, sigma)

Rule 5: Two (or three) out of three points in a row are more than 2 standard deviations from the mean in the same direction (shift)


Parameters

valueList list[float]: A list of values
mean Float: Mean value of the valueList
sigma Float: Standard deviation of the valueList values


Returns

ruleViolation Boolean
resultSet List of Boolean values ruleViolation for each value in the valueList


Example

valueList = [98, 112, 111, 102, 99]
mean = 100
sigma = 5
result = system.kanoa.quality.spc.rule5(valueList, mean, sigma)