delay 251 reflection coefficients 252 255 and adders 256 257 the backward residual errors 232 236 243 are multiplied by corresponding gains 234 237 245 and subtracted 233 235 246 from the noise reference 230 to form the filter output 248 and the power estimate 247 249 fig8 shows the rls lattice 160 flowchart the sampling rate 161 is set at 4098 chest electrode signals are used for primary and arm electrode signals are used for reference 162 the value of cc and the filter order m are again chosen to maximize accuracy and minimize processing 163 the primary signal is do and the reference signal is xn 164 the vectors v g b b u2014 1 f u03b3 2 and u03c3 2 are initialized to zeros and vector k is initialized to ones 165 for each instant of time n 1 2 the previous values of b are saved into the vector b u2014 1 166 the lattice residual forward f and backward b errors are initialized 167 b i b u2014 1 i u2212 1 u2212 k i u2212 1 f i u2212 1 f i f i u2212 1 u2212 k i u2212 1 b u2014 1 i u2212 1 the power estimate is calculated for each i from 1 to m 169 and the noise canceller tap gains are calculated for each i from 1 to m 170 g u2061 i g u2061 i u03b1 u03b3 2 u2061 i u2062 v u2061 i u2062 b u2061 i then for each i from 1 to m u2212.