system.kanoa.quality.spc.rule2(valueList, mean)
Rule 2: Nine (or more) points in a row are on the same side of the mean (shift)
Parameters
valueList list[float]: A list of values
mean Float: Mean value of the valueList
Returns
ruleViolation Boolean
resultSet List of Boolean values ruleViolation for each value in the valueList
Example
valueList = [101, 102, 103, 101, 104, 102, 105, 103, 106]
mean = 100
result = system.kanoa.quality.spc.rule2(valueList, mean)