LCLi =
UCLi =
w is the span parameter (number of terms in moving average)
ni is the sample size of the ith subgroup
k is the number of standard deviations
Xw is the weighted average of subgroup means

Help created on 9/19/2017