def compute(self):
self._compute_window_size()<EOL>smooth = []<EOL>residual = []<EOL>x, y = self.x, self.y<EOL>self._update_values_in_window()<EOL>self._update_mean_in_window()<EOL>self._update_variance_in_window()<EOL>for i, (xi, yi) in enumerate(zip(x, y)):<EOL><INDENT>if ((i - self._neighbors_on_each_side) > <NUM_LIT:0.0> and<EOL>(i + self._neighbors_on_each_side) < len(x)):<EOL><INDENT>self._advance_window()<EOL><DEDENT>smooth_here = self._compute_smooth_during_construction(xi)<EOL>residual_here = self._compute_cross_validated_residual_here(xi, yi, smooth_here)<EOL>smooth.append(smooth_here)<EOL>residual.append(residual_here)<EOL><DEDENT>self._store_unsorted_results(smooth, residual)<EOL>
Perform the smoothing operations.