system.kanoa.quality.spc.rule6(valueList, mean, sigma)
Rule 6: Four (or five) out of five points in a row are more than 1 standard deviation from the mean in the same direction (shift or trend)
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, 106, 107, 108, 106]
mean = 100
sigma = 5
result = system.kanoa.quality.spc.rule6(valueList, mean, sigma)