where refers to the i-th index value and refers to the average of the index sequence. For the negative index, we use the same type of method to process the negative index into the positive index,