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[bool] ruleViolation for each value in the valueList
Example